Discussion Locked

What command list file author, last use?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to report on old, unused files to the author/owner. Netware has a command that will list the last time a file was used, and who the author is. Is there a way to list this information in NT 4.0 for all files in a directory?

3 replies

by joseph moore

Just do a directory listing with a few switches:

c:\> dir d:\download\*.* /Q /T:W >>filestats.txt

The /Q displays the file Owner.
The /T:W displays the last file Write done (the Modified date). If you want the file Creation date, do /T:C
Andif you need the last file Access date (the last time the file was opened but not written to) do /T:A

So, my example gives me this:
12/02/1999 01:53p 62,464 BUILTIN\Administrators now.exe
12/12/2001 09:19p 32,768 BUILTIN\Administrators rpcdump.exe
01/18/2002 05:42p 173 BUILTIN\Administrators test.bat

Then, just export it to a text file for later viewing, by putting >>filestats.txt (or whatever file name you want to use).
Hope this helps.

by shanghai sam

This works! What is impressive is that he uses an unlisted variable -- "Q" which is not mentioned in help on the "DIR" command.
Thank you!

This discussion is closed to new replies.