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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

log rotation in windows cmd.exe

Status
Not open for further replies.

dwcasey

MIS
Oct 31, 2002
179
US
Is there a way to script log file rotation in windows2k?

This can be done in Unix quite elegantly, but in Windows, it seems like a kludge, but then again, I am not Windows savvy.

I've come up with something like:

mv file2 file3
mv file1 file2
mv file0 file1
mv file file0

And on and on, but is there a better way?

Also, is there a way to put the date into the file instead of using the numbers?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top