Solved

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

Posted on 2011-03-11
13
302 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 51

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 51

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

12 Experts available now in Live!

Get 1:1 Help Now