Solved

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

Posted on 2011-03-11
13
303 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
  • 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
 
LVL 43

Expert Comment

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

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
Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

 
LVL 52

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now