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"
20 September 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment