...

View Full Version : FSO, Last Modified.



Morgoth
02-09-2003, 06: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, 07:55 AM
Set fs = CreateObject("Scripting.FileSystemObject")
Set testfile = fs.GetFile("filename")
thedate = testfile.DateLastModified

Morgoth
02-09-2003, 08:12 AM
That is exactly what I did, but I got an error with the file can't be found.

Morgoth
02-09-2003, 08: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, 01:56 AM
So I assume you've figured it out? ;)

Morgoth
02-11-2003, 02:46 AM
yep!

whammy
02-11-2003, 03:37 AM
Cool, I will close this thread to save space.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum