Link to home
Start Free TrialLog in
Avatar of fcek
fcekFlag for Ireland

asked on

Dos command to include access date of afile? (not the modified date)


Is there a DOS command?

E.g to view the last access date of a word .doc
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 4runnerfun
4runnerfun

If you were to use the DIR command on the folder, you can use
DIR *.* /T A
which will list the contents of the directory sorted by last accessed date/time. The date/time will be listed for each file as well.
Ah, sorry. Dragon-it beat me to it.
Erm, I feel a little cheated there :-(
Yes, you were Steve, I already asked for a moderator review...

~bp
What are you doing here!
I get around...

~bp
Avatar of fcek

ASKER



Hi,

If I remember correct the
/ta  didint work (no space between characters)

the

/T A  (space between characters) did work.  

Correct me if Im wrong.

Thanks

 



C:\Utils\hosts>dir /ta
 Volume in drive C is W2K BOOT
 Volume Serial Number is 30C9-7BBA

 Directory of C:\Utils\hosts

22/07/2004  06:06       <DIR>          .
22/07/2004  06:06       <DIR>          ..
22/07/2004  06:06                  403 hosts
22/07/2004  06:06                  218 lmhosts
22/07/2004  06:06                  279 Update Hosts files.bat
               3 File(s)            900 bytes
               2 Dir(s)   1,233,920,000 bytes free

C:\Utils\hosts>dir /t a
 Volume in drive C is W2K BOOT
 Volume Serial Number is 30C9-7BBA

 Directory of C:\Utils\hosts

File Not Found

C:\Utils\hosts>
Avatar of fcek

ASKER




Oh you have an answer for everything dragon-it  :-)

OK if you want to get a moderator to look at it a reaward points.

Apols  
Avatar of fcek

ASKER

thanks everyone!

Fcek
glad we got there in the end :-)