Re: Text File Create date problem... by dNagel
dNagel
Fri Nov 10 16:35:20 CST 2006
I, too, ran his script and experienced his issue... I'm at a loss...
I tried to copy and then deleted the old one. Then I created a new
file with that original file name thinking it would be a suitable
workaround... oddly enough, I got the same result, which seems
impossible... but that's what happened.
fwiw,
Microsoft Windows XP [Version 5.1.2600]
Windows XP Pro 2002 SP 2
D.
Franz aRTiglio wrote:
> "celoftis" <celoftis@gmail.com> ha scritto nel messaggio news:1163175954.845321.34490@h54g2000cwb.googlegroups.com...
>
>> Franz_aRTiglio wrote:
>>
>>>> I didn't show this above but I already had:
>>>> Set objLogFile = Nothing
>>>>
>>>> Regardless, trying to assign the object pointer a string value throws
>>>> an error:
>>>> Object required: "[string: ""]"
>>>>
>>> how about adding a "fresh new" variable such as "oblLogFIleNew "
>>>
>>> then passing from the old one all "old" values except the date ?
>>>
>> I gave that a try to no avail - same result.
>> Any other ideas?
>>
>
> I ran some test and the new file does NOT carry the "old"
> date, the old file is correctly renamed and keeps the old
> dates except for the "last modified".
>
> As example, I got a try with a "aaa.txt" file in my root disk;
> I've run your script and a new file "aaa.txtblahblah" has been
> created; I've checked the dates, so "aaa.txt" file now reports
> TODAY for modified and last time accessed, "aaa.txtblahblah"
> reports the old date time for "last modified" but today
> for "last accessed".
>
> So what is the problem ? Maybe I just misunderstood your
> question, but please, tell me what you're trying to do...
> in a different way... something like:
>
> I wish to rename a file then create a new file, but
> the old file should keep old values for the date/time (details)
> and the new file should be created with actual values
> for date/time (details)
>
> As I mentioned, maybe I got puzzeld, but if you plan to
> keep OLD values when renaming a file for both "created"
> and "last accessed", I bet is quite impossible with VBS
> because those values are andled directly by the
> file system, not by the VBS engine, afaik it requires
> a direct access to the filesystem object trought api
> calls and changing the file's attributes directly.
>
>
>
>
>
>
>