Guest Ron Derk Report post Posted 02/15/2003 08:56 PM How do I find the date a file was last modified? Tried using VBS module with no luck. Dim STRJobDate STRJobDate = cstr(FILEDATETIME("c:\test.wav") But all I get are VBS errors. what am I doing wrong? Share this post Link to post
SupportTeam Report post Posted 02/16/2003 01:44 AM Although FileDateTime() is supportd in VBA I'm not too sure if it is supported in VBScript. But you can use the FileSystemObject in VBS to get the same information (an much more...) The code would be: Dim fso, f, strDateCreated Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFile("c:\test.wav") strDateCreated = f.DateCreated more information on FileSystemObject can be found at: MSDN Help on FileSystemObject and the above example was found in: http://msdn.microsoft.com/library/default....datecreated.asp Share this post Link to post