I'm using the following code to find out whether a file exists or not
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
If objFSO.FileExists(someFile) Then
response.write("File Exists"
End If
But after that I want to know when was it last modified. But is there any inbuilt function which will tell me that. Somebody told me that it's 'DateLastModified'. So I used objFSO.DateLastModified(someFile) to get the date. But it's not working. Is it the properway to use it or is there some other way.
Thanks.
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
If objFSO.FileExists(someFile) Then
response.write("File Exists"
End If
But after that I want to know when was it last modified. But is there any inbuilt function which will tell me that. Somebody told me that it's 'DateLastModified'. So I used objFSO.DateLastModified(someFile) to get the date. But it's not working. Is it the properway to use it or is there some other way.
Thanks.