Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    May 2002
    Location
    Quincy, Illinois
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Getting File Information (Access 2003)

    I have a VB script that I'm working on and would like to bring in the modification date of a text file I'm using. I have the file name and the path, but do not know how to retrieve the information from the windows directory.

    Thanks in advance,
    Drew

  2. #2
    2 Star Lounger
    Join Date
    May 2002
    Location
    Quincy, Illinois
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Getting File Information (Access 2003)

    Thanks!

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Getting File Information (Access 2003)

    You can use Scripting.FileSystemObject for this:

    Dim strFile As String
    Dim dtmModified As Date
    strFile = ...
    dtmModified = CreateObject("Scripting.FileSystemObject").GetFile (strFile).DateLastModified

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •