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
fcekAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
You can get the last accessed date of a file with a dir command using /ta:

dir C:\yourdir\yourfile\whatever.doc /ta


Steve
0
 
4runnerfunCommented:
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.
0
 
4runnerfunCommented:
Ah, sorry. Dragon-it beat me to it.
0
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
Steve KnightIT ConsultancyCommented:
Erm, I feel a little cheated there :-(
0
 
Bill PrewCommented:
Yes, you were Steve, I already asked for a moderator review...

~bp
0
 
Steve KnightIT ConsultancyCommented:
What are you doing here!
0
 
Bill PrewCommented:
I get around...

~bp
0
 
fcekAuthor Commented:


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

 



0
 
Steve KnightIT ConsultancyCommented:
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>
0
 
fcekAuthor Commented:



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  
0
 
fcekAuthor Commented:
thanks everyone!

Fcek
0
 
Steve KnightIT ConsultancyCommented:
glad we got there in the end :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.