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?

[Webinar] Streamline your web hosting managementRegister Today

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
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
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
All Courses

From novice to tech pro — start learning today.