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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing dos dates

Status
Not open for further replies.

acf

IS-IT--Management
Jan 9, 2003
6
0
0
GB
I need to write a function that will accept a file-name (with or without a path) and return the "dos-date" - the date that the file was last updated. Is there a sys() command or library function that I can use, or has ybody attempted this previously. I am using 2.6 for DOS.

Thanks
 
Maybe if you know the name of the fie you could do a "DIR filename > tempfile.txt" you could then inspect tempfile.txt to see what the date is associated with the file. Not the most elegant of solutions, but it will work.

Hope it helps...
 
Try
= adir(a1, filename)
filedate = a1(1,3)
Tesar
 

adir() is just what I need.

Very impressed with the speed of response! Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top