Solved

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

Posted on 2011-03-11
13
307 Views
Last Modified: 2012-05-11

Is there a DOS command?

E.g to view the last access date of a word .doc
0
Comment
Question by:fcek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +1
13 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 total points
ID: 35108351
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
 
LVL 3

Expert Comment

by:4runnerfun
ID: 35108367
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
 
LVL 3

Expert Comment

by:4runnerfun
ID: 35108378
Ah, sorry. Dragon-it beat me to it.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 43

Expert Comment

by:Steve Knight
ID: 35216808
Erm, I feel a little cheated there :-(
0
 
LVL 55

Expert Comment

by:Bill Prew
ID: 35216855
Yes, you were Steve, I already asked for a moderator review...

~bp
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 35217043
What are you doing here!
0
 
LVL 55

Expert Comment

by:Bill Prew
ID: 35217063
I get around...

~bp
0
 

Author Comment

by:fcek
ID: 35217103


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
 
LVL 43

Expert Comment

by:Steve Knight
ID: 35217139
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
 

Author Comment

by:fcek
ID: 35217194



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
 

Author Closing Comment

by:fcek
ID: 35221882
thanks everyone!

Fcek
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 35222096
glad we got there in the end :-)
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
In this era, as you know, cybercrime and other sorts of frauds using the internet has increased day by day. We should protect our information assets and confidential information from getting exploiting by the attacker or intruders. Most of the fraud…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question