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

Folder's date

Status
Not open for further replies.

wrov

Programmer
Nov 1, 2002
43
PY
Hello everybody

There is some way to know in which date a folder was created ?

The ADIR() function does not work in NT/2000/XP (because it return the date of the last modification, not the date of creation).

Thank you very much in advance.

Walter.


 
Hi Walter,

myCount = ADIR(myDir,"C:\*.*","D")
DISPLAY MEMORY LIKE myDir

The 3rd column of the myDir array contains the Date as reported by the OS as to the date of that file. In the case of folders, it is the date when it was created and not the date in which any of its contents are modified. SO you will always get the date when it was created. Even when you rename, the date never gets changed.

SO you only get the Created date for Folders.
:)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top