View Full Version : FSO, Last Modified.
Morgoth
02-09-2003, 05:37 AM
I was told in a microsoft page that I can find out the modification date of a file with FSO.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref60/htm/ref_ssi_flastmod.asp
I took a good long look at this, and I can't find it on their site.
Does anyone know the code?
Roelf
02-09-2003, 06:55 AM
Set fs = CreateObject("Scripting.FileSystemObject")
Set testfile = fs.GetFile("filename")
thedate = testfile.DateLastModified
Morgoth
02-09-2003, 07:12 AM
That is exactly what I did, but I got an error with the file can't be found.
Morgoth
02-09-2003, 07:14 AM
Wait, I got it..
I need the full path to do it. Little set back I guess...
But I could use ServerVariables!
APPL_PHYSICAL_PATH and the folders it is in, then the name!
whammy
02-11-2003, 12:56 AM
So I assume you've figured it out? ;)
Morgoth
02-11-2003, 01:46 AM
yep!
whammy
02-11-2003, 02:37 AM
Cool, I will close this thread to save space.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.