geuis
04-18-2003, 10:47 PM
Is it possible, using javascript, to check on the last modified date of a file stored locally?
|
Click to See Complete Forum and Search --> : obtaining file data through javascript geuis 04-18-2003, 10:47 PM Is it possible, using javascript, to check on the last modified date of a file stored locally? Jona 04-18-2003, 11:20 PM Yes, but it uses ActiveX. function ShowFileInfo(filespec){ filespec = "c:\\your_file.txt"; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFile(filespec); s = f.DateLastAccessed; alert(s); } webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |