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

reading file date & time of EXE

Status
Not open for further replies.
Mar 20, 2006
589
US
I played with this awhile ago, but lost track of the code to find the file date, time & size of an EXE file.

Thanks,

Jim C.

 
Hi, Jim

I usually use the adir() function.

Here is an example cribbed from the NG:

LOCAL aName, aSize, aDate, aTime, aAttr, nLen, i
nLen := ADIR( "*.EXE" ) // Number of EXE files in this directory
IF nLen > 0
aName := Array( nLen ) // make room to store the information
aSize := Array( nLen )
aDate := Array( nLen )
aTime := Array( nLen )
aAttr := Array( nLen )
FOR i = 1 TO nLen
? aName, aSize, aDate, aTime, aAttr
NEXT
ELSE
? "This directory has no .EXE files"
ENDIF

(I know, I should have put those cute code delimiters to make it look nice)
Jock
 
JOck,

Thanks for the reply, I'll try it tomorrow. Also I don't do cute any more, looked great as is.

Thanks,

Jim C.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top