|
Answer» Hi,
Its been a loooooong time since I used DOS commands and was after a LITTLE bit of help. What I'm trying to do is run search for all files/folders which have been created (and by whom) in the last 2 WEEKS. The plan was to run a dir /s /q and then do something with the /t switch but I can't figure out how to use it.
Any body have any ideas
Thanks in advance
GavThe /t switch simply directs the DIR command which time to be displayed:
/tc - file created /tw -file last written/modified /ta - file last accessed
To get info on ownership you need to reference a Windows WMI class. I'm not aware of DOS keeping track of this info (it's a single user OS).
You might consider using a script or possibly the Microsoft Log PARSER (free download but you need a knowledge of SQL)
Good luck. 8-)Hi Sidewinder, thanks for your help, I'm know nill about SQL so what I did was.... ran
dir /tc /od /q /s > creation.txt
I then opened the output in a text editor (TextPad - its like notepad but you can write macro's). I stripped all the lines out with a date pre 20/02/06. I was then LEFT with the file name, location, creation date, owner (i.e. who created file), size.
Cheers
Gav
|