Discussion Locked

Track Old Files

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a way to get a list of user files (.doc, xls) that are either more than a year old or have not been opened for over a year in a volume? Kind of like a log file.

Thanks

7 replies

by tbradley

at your trusty dos prompt,

enter the directory you wish to check, or at the root if you want to check the whole drive ...

for example c:\ drive

dir /oa >lastused.txt will give you a text file listing all files sorted in order of date last accessed ( longest not used first)

dir *.xls /s /oa >lastused.txt will give you a list of all excel files in same order.

( note: you can call the file anything xxx.txt, as long as you have the .txt

by jimbb

Try using NDIR in stead of DIR, since it gives you a lot more information about the owner (so you know who to ask if the files can be deleted), flags and so on. Try NDIR /? to get the parameters for the info you need, and if you redirect the outputto a file (NDIR > filename) you have your log file.
Jim

This discussion is closed to new replies.