Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. help how to get date created from file using vb6

help how to get date created from file using vb6

Scheduled Pinned Locked Moved Visual Basic
helptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arif Liminto
    wrote on last edited by
    #1

    hi i am a new vb leaner, now i am using vb6 and i got stuck in my program when i want to create program that can access the file properties so i know the date created Dim myFSO,f Set myFSO = CreateObject("Scripting.FileSystemObject") Set f = myFSO.GetFile(txt_filename.txt) // txt_filename.txt is input from user and when i run the program it always stuck invalid procedure call/ argument do you know the solution

    T 1 Reply Last reply
    0
    • A Arif Liminto

      hi i am a new vb leaner, now i am using vb6 and i got stuck in my program when i want to create program that can access the file properties so i know the date created Dim myFSO,f Set myFSO = CreateObject("Scripting.FileSystemObject") Set f = myFSO.GetFile(txt_filename.txt) // txt_filename.txt is input from user and when i run the program it always stuck invalid procedure call/ argument do you know the solution

      T Offline
      T Offline
      Thomas Krojer
      wrote on last edited by
      #2

      Hi arifliminto86, This worked fine when I tested it:

      Dim myFSO As Object
      Dim f As Object

      Set myFSO = CreateObject("Scripting.FileSystemObject")
      Set f = myFSO.GetFile("c:\test.txt")

      Debug.Print f.DateCreated

      Greetings, Thomas

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups