I need to 'touch' or update the DateLastModified property on a folder using VB Script.
PowerShell isn't an option, although I am interested if it is possible with PowerShell.
Also, I'm have no wish to run an external program like GNU touch.exe. The script will run on multiple computers and I can't guarantee that PowerShell or external programs will be installed.
Thanks for any leads or help, Steve
p.s also asked on technet.
From here:
http://www.tek-tips.com/viewthread.cfm?qid=1372273
ModFileDT "c:\rootdir", "folder", "1/01/2007 4:18:02 PM"
Function ModFileDT(strDir, strFileName, DateTime)
Dim objShell, objFolder
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(strDir)
objFolder.Items.Item(strFileName).ModifyDate = DateTime
End Function