• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

A utility to find the newest file in subfolders?

imported_boe

Senior member
Hello,

I'm trying to clean up our Windows 2003 server. We have a directory with MANY folders and many subfolders of those folders. I'd like to point to a folder and say - what is the newest file in that entire folder and all of it's subfolders. Is there a good way to do that short of doing a search and then looking at all of the files and then sorting by date?

Basically I would love a report something like this -

Root - misc.mdb - 07/01/06
Folder A - root:file.doc - 01/22/05
Folder B - sufolder1 - subfolder b:my.xls - 02/04/06
Folder C - subfolder1 - widget.ppt - 01/02/04


Thanks
 
Originally posted by: boe
Hello,

I'm trying to clean up our Windows 2003 server. We have a directory with MANY folders and many subfolders of those folders. I'd like to point to a folder and say - what is the newest file in that entire folder and all of it's subfolders. Is there a good way to do that short of doing a search and then looking at all of the files and then sorting by date?

Basically I would love a report something like this -

Root - misc.mdb - 07/01/06
Folder A - root:file.doc - 01/22/05
Folder B - sufolder1 - subfolder b:my.xls - 02/04/06
Folder C - subfolder1 - widget.ppt - 01/02/04


Thanks

Hm. might try dumping the contents of all folders to a text or csv file then using a spreadsheet to massage the data a bit.


 
Thanks my goal is not to have to do any massaging. I have a client who cannot do any cleanup/maintenance on their own so I need a utility to put their nose in the issue so they can start cleaning up their stuff. I need them to do this weekly as they are expanding their data storage requirements well beyond their budget. Basically I'm looking for something as easy to use as TreeSize.
 
ah gotcha.


Restructure folder layout and revisit your permissions maybe? Implement disk quotas. If you keep permissions tight (like folder creation) you can stop stuff from spilling everywhere. After that the folders where they do have the ability to go crazy can have quotas on them. You'll get some initial pain doing this but users can often self-manage this way. Users will clean crap up after the first few times they have to put in a request for quota expansion...even if you always grant the request.


Anyhoo. I'm throwing general stuff out there but you know the situation. Other than running the directory contents through Excel I got nothin but a bump for ya... 🙁
 
Thanks for the DIR - I should mention that I really only want the oldest file per root folder (including subs) so if the root structure was folder a, folder b, etc up to folder z, and each folder had 10 sufolders, each of the 10 subs had 5 more subfolders, I would want just a report that had -
Folder a - oldest file was in subolder blah - the file is me.doc and the date is 01/01/2003
Folder b - blah blah bah

So I'd only have 20+ files/folders listed.


managing/quotas is not an option as I'm only there once a week and they can at a moments notice generate 100 gb of data in a given folder.
 
Not sure I can help you there bud. You can do some dir /? to find some other ways to get the information and pipe it to a text document or something, but I don't know of any utilities that do what you want.
 
I could not get your list, but:
dir /s /o-d /p

will give you all subfolders and files
sort order by date, newest first
pauses at each page full of info
 
Back
Top