Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete files by size in a batch file?

Status
Not open for further replies.

linmatt

Technical User
May 22, 2002
50
GB
I have an NT4 server that generates thousands of small trasaction log files, from 1MB to 1k in size. I'd like to delete them on a weekly basis by a batch file, but I want to do it by size - largest first - but can I do that in DOS? I can do it easily in Unix, is there a way in Bill's wonderland? I don't know VB Script - batch file stuff would be good.

Thanks

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top