
Change Create/Modified Date?
There isn't any script-only way (that I know of) to write a utility like this. You *can* do this
with the Win32 SetFileTime API call, so I guess I'd suggest writing your own COM wrapper.
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> Mark,
> Check out the "Error Handling" thread posted on 2/21/2001. Michael Harris
> added a nice way to re-stamp a modified date on files for a script I made.
> (included in that thread).
> Cheers,
> Chris
> > How do you go about changing the created or modified date of a file?
> > I have about 16,000 HTML docs that I'd like to change the created date
> > based on a date string in the document itself. For instance, I would
> > search the document for the string "Created on:", then take the value
> > after that string and plug into a script that will modify the Create
> > Date for the doc. This is for use in a search engine on a CD-ROM, so
> > that the search results show the correct date.
> > I have several formats to work with (i.e. "May 21,1999 at 19:23" or
> > "02/01/2000 - 9:32PM"), so I'll have to do them in groups based on the
> > date format.
> > I have some experience with LotusScript (no flames please), which is
> > basically the same language. But I'm not even sure where or how to run
> > the VB.
> > Is this even possible?
> > I've seen plenty of shareware programs that will let you change the file
> > dates, but no raw code that will let me cusomize it. Thanks.