INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

reading file date & time of EXE

reading file date & time of EXE

(OP)
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.

 

RE: reading file date & time of EXE

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[i], aSize[i], aDate[i], aTime[i], aAttr[i]
         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
 

RE: reading file date & time of EXE

(OP)
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.


 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close