how to get date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svbs tech
    New Member
    • Jan 2012
    • 7

    how to get date

    how to date from files
    like SYSTEM.DATA, SYSTEM,DA0 and BOOTLOG.TXT in vb6
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    This will show the date from a file selected in a filelistbox:

    Code:
    Private Sub Dir1_Change()
        File1.Path = Dir1.Path
    End Sub
    
    Private Sub Drive1_Change()
        Dir1.Path = Drive1.Drive
    End Sub
    
    Private Sub File1_Click()
        MsgBox FileDateTime(File1.FileName)
    End Sub

    Comment

    • svbs tech
      New Member
      • Jan 2012
      • 7

      #3
      it is good sir, but how can i find above mentioned files in my system and get their dates. please tell me the location of these files

      Comment

      • Guido Geurs
        Recognized Expert Contributor
        • Oct 2009
        • 767

        #4
        Sorry but I'm working on a PC with XP SP3 and these files are not found on my system !
        Can you do a search ?
        Attached is a demo of the code.
        Just click in the file window on the file and a messagebox will show you the creation date and time.
        Attached Files

        Comment

        Working...