Torgeir
Fri Dec 05 10:43:54 CST 2003
Peter Almer Frederiksen wrote:
> I need to set DateLastModified of a file. How can I do that?
>
> I need it because I am exporting files from a SharePoint database to the
> file system, and needs to set the exported files to the same date/time as
> they originally had. I already know how to read the files and dates from
> SharePoint.
Hi
You can e.g. use touch.exe from the GNU utilities for Win32 from:
http://unxutils.sourceforge.net for this:
From: William E Hatto (weh@nospam.ozemail.com.au)
Subject: File Dates
Newsgroups: microsoft.public.scripting.vbscript
Date: 2002-07-12 07:04:40 PST
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=7283f24a2b680e93
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/scriptcenter