20 September 2007

FI freeware is a DIR alternative

Download FI.zip, an alternative to the DIR command, which provides file age and size filtering, security, device, alternate data streams, and file link information.

Scripting Example
If you wanted to delete all the files in the C:\Logs directory whose last write date is greater than 7 days:

for /f "Tokens=*" %%f in ('fi /A-d /b /gw">"7 C:\Logs\*.*') do del /q "%%f"
Bookmark and Share ITStuff.ca

No comments:

Post a Comment