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.
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.