Results 1 to 3 of 3

Thread: Question for Toot

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    UK
    Posts
    300
    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
    Resistance is futile

  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    Scotland
    Posts
    184
    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.




  3. #3
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    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
  •  



Click Here to Expand Forum to Full Width