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!
by wrw
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending