Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - change file's creation date

Reply
 
Old 07-16-2009   #1 (permalink)
LJB


 
 

change file's creation date

I use the following to change a file's modify date. Is there anything
available to change the creation date?
I have thousands of scanned photos, know the date taken and want to replace
the scanned files date.

Set fi = CreateObject("Scripting.FileSystemObject")._
GetFile(strFilePath)

CreateObject("Shell.Application")._
NameSpace(fi.ParentFolder & "\")._
ParseName(fi.Name)._
ModifyDate = newDate


thanks,
LJB



My System SpecsSystem Spec
Old 07-16-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: change file's creation date


"LJB" <postmaster@[127.0.0.1]> wrote in message
news:O78TA%23hBKHA.528@xxxxxx
Quote:

>I use the following to change a file's modify date. Is there anything
>available to change the creation date?
> I have thousands of scanned photos, know the date taken and want to
> replace the scanned files date.
>
> Set fi = CreateObject("Scripting.FileSystemObject")._
> GetFile(strFilePath)
>
> CreateObject("Shell.Application")._
> NameSpace(fi.ParentFolder & "\")._
> ParseName(fi.Name)._
> ModifyDate = newDate
>
>
> thanks,
> LJB
I don't think that the Shell Application object can do it but touch.exe from
http://pobox.com/~stevemil certainly can.


My System SpecsSystem Spec
Old 07-16-2009   #3 (permalink)
LJB


 
 

Re: change file's creation date


"Pegasus [MVP]" <news@xxxxxx> wrote in message
news:%2300do8iBKHA.4432@xxxxxx
Quote:

>
> "LJB" <postmaster@[127.0.0.1]> wrote in message
> news:O78TA%23hBKHA.528@xxxxxx
Quote:

>>I use the following to change a file's modify date. Is there anything
>>available to change the creation date?
>> I have thousands of scanned photos, know the date taken and want to
>> replace the scanned files date.
>>
>> Set fi = CreateObject("Scripting.FileSystemObject")._
>> GetFile(strFilePath)
>>
>> CreateObject("Shell.Application")._
>> NameSpace(fi.ParentFolder & "\")._
>> ParseName(fi.Name)._
>> ModifyDate = newDate
>>
>>
>> thanks,
>> LJB
>
> I don't think that the Shell Application object can do it but touch.exe
> from http://pobox.com/~stevemil certainly can.
>
Thanks, that will work.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
change file's permission in batch? PowerShell
How to change a file's owner? Vista file management
Permanently change a single file's icon General Discussion
Command line tool to change file creation date? Vista General
Changing a file's date Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46