更改msg文件上的修改日期 [英] Change modified date on msg file

查看:1540
本文介绍了更改msg文件上的修改日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个将msg文件重命名为Sender - Subject的vbscript。我想要做的是将msg文件的修改日期更改为电子邮件的接收日期。事情是我可以发誓以下代码在上周做了这个。在本周重复检查时,名称正在改变,但不是修改日期。任何帮助都会很棒,因为这是我的第一个vbscript。

展开 | 选择 | Wrap | 行号

解决方案

Just乍一看,它看起来好像你可能错过了一个将objFolder设置到该文件夹​​的行,在ModFileDT例程中。



一眼就看出来,它看起来好像你可能错过了一个将objFolder设置到文件夹的行,在ModFileDT例程中。



对不起,

但我不确定我是否跟进。你能解释一下吗?



对不起,

但是我不确定我是否跟进。你能解释一下吗?



好​​吧,你定义了objShell和objFolder。然后将objShell设置为指向新的Shell对象。然后你开始使用objFolder的属性,但objFolder只是一个空的类型。对象指针,不是吗?它没有被设置为任何东西。


(我在使用对象时总是有点模糊,所以我可能完全错了。它看起来很奇怪。)


Hi all,

I have a vbscript that renames msg files to Sender - Subject. What I am looking to do is change the modified date of the msg file to be the received date of the email. The thing is I could swear the following code was doing this last week. Upon double checking this week the name was changing but not the modified date. Any help would be great as this is my first vbscript.

Expand|Select|Wrap|Line Numbers

解决方案

Just at a glance, it looks to me as though you might be missing a line that sets objFolder to the folder, in the ModFileDT routine.


Just at a glance, it looks to me as though you might be missing a line that sets objFolder to the folder, in the ModFileDT routine.

Sorry,
But I''m not sure I follow. Could you explain please?


Sorry,
But I''m not sure I follow. Could you explain please?

Well, you define objShell and objFolder. Then you set objShell to point to a new Shell object. Then you start to work with properties of objFolder, but objFolder is just sort of an "empty" object pointer, isn''t it? It hasn''t been set to anything.

(I''ve always been a bit vague on working with objects, so I may be completely wrong. It just looks odd.)


这篇关于更改msg文件上的修改日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆