• Getting File Information (Access 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Getting File Information (Access 2003)

    Author
    Topic
    #429005

    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

    Viewing 0 reply threads
    Author
    Replies
    • #998057

      You can use Scripting.FileSystemObject for this:

      Dim strFile As String
      Dim dtmModified As Date
      strFile = …
      dtmModified = CreateObject(“Scripting.FileSystemObject”).GetFile(strFile).DateLastModified

    Viewing 0 reply threads
    Reply To: Getting File Information (Access 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: