Re: Change folder date
From: Michael Harris \(MVP\) ("Michael)
Date: 03/06/04
- Next message: Michael Harris \(MVP\): "Re: How does ASP accept a UDT from a C++ COM?"
- Previous message: zhjw: "How does ASP accept a UDT from a C++ COM?"
- In reply to: Carlos Andreu: "Change folder date"
- Next in thread: Carlos Andreu: "Re: Change folder date"
- Reply: Carlos Andreu: "Re: Change folder date"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 5 Mar 2004 18:13:40 -0800
> Hello all, I'm trying to find a way (with vbs) to change a folder
> date/time.
You can change the last modified date to the current date/time by creating
and deleting a temp file within the folder. To set it to a specifec
date/time you'll need to find a touch utility...
set fso = createobject("scripting.filesystemobject")
path = "c:\_temp\"
set folder = fso.getfolder(path)
msgbox folder.datelastmodified
tfile = path & fso.gettempname
Call fso.createtextfile(tfile)
fso.getfile(tfile).delete
msgbox folder.datelastmodified
-- Michael Harris Microsoft.MVP.Scripting Microsoft® Windows®2000 Scripting Guide http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp TechNet Script Center Sample Scripts http://www.microsoft.com/technet/scriptcenter/default.asp Download in HTML Help format (searchable) http://www.microsoft.com/downloads/release.asp?ReleaseID=38942 WSH 5.6 documentation download http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
- Next message: Michael Harris \(MVP\): "Re: How does ASP accept a UDT from a C++ COM?"
- Previous message: zhjw: "How does ASP accept a UDT from a C++ COM?"
- In reply to: Carlos Andreu: "Change folder date"
- Next in thread: Carlos Andreu: "Re: Change folder date"
- Reply: Carlos Andreu: "Re: Change folder date"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|