|
-
Jul 12th, 2000, 08:29 AM
#1
Thread Starter
Hyperactive Member
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
-
Jul 12th, 2000, 09:28 AM
#2
Addicted Member
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.
-
Jul 12th, 2000, 09:37 AM
#3
Lively Member
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
Some cause happiness wherever they go; others, whenever they go.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|