filesystemobject

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

I am trying to get the datecreated for a specific csv file.

I am using the following, but I am unsure of what to do with this or where
to go. If the file was created on a specific day, then I want to run another
code or something. But I just need to know how to retrieve the filecreated
date and put it in a form field.

Dim fso As FileSystemObject
Dim mydrive As Drive
Dim path As String
'Initialize path.
path = "C:\"
'Get object.
Set mydrive = fso.GetDrive(path)

'Check for success.
MsgBox mydrive.DriveLetter 'displays "C"

Thanks in advance,
geebee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top