Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check Date of Data in text File before Import? 1

Status
Not open for further replies.

Clarkie001

IS-IT--Management
Aug 26, 2003
59
0
0
GB
Hi,

I would be like to be able to check the date contained within a Text File before I import it into my database.

Any help on this would be much appreciated, thanks in advance.

Clarkie
 
you can get the creation date of your file with the File object DateCreated property.
set a reference to Microsoft Scripting Runtime

Dim fso As FileSystemObject
Dim fl As File
Set fso = New FileSystemObject
Set fl = fso.GetFile("c:\au.exe")
MsgBox fl.DateCreated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top