-
Hi Toot
Thanks for taking the time to respond to my query about getting the time stamp for a file.
When I try your suggested code I get a compile error message sayinmg "User defined type not defined" at the line
Dim fso As New FileSystemObject
I use VB5 pro on Win NT workstation. Do I need to check a reference in the project -> references list.
Please help !
Many thanks
Locutus
-
I have only been using VB6 (for a short while), but I don't think the FileSystemObject is supported in previous versions. You might be able to use FileDateTime(pathname)but I'm not sure if its only VB6 as well.
-
Ah. I don't know what version that started at... is the scripting runtime library not an available reference then?
I can tell you, though it's absolutely no help whatsoever, that I tried to do a similar thing back in the bad old days when VB4 was the dog's knackers. I ended up writing a C++ DLL to do the file time stuff. The hardest part that I can remember about that is allowing for different timezones and summertime adjustments.
Sorry - I haven't got v5 any more! Upgrade upgrade!
Soz,
Toot