create bat file to purge log file

Dell Latitude d830 notebook - customizab...
October 8, 2009 at 20:18:29
Specs: Windows XP
Hi any expert here can help me in creating bat file for window.

actually what i need is create a bat file to monitor a log file size and purge it. because the file size will keep growth fast.

now what my plan to do is:-
1) move/rename the file reach 1Gb size to a file name with running number at the end of the file. example
2) copy top 20line of the log file (TestFileXXX.log) into other log file "TimeMonitor.txt" (for monitor purpose) then zip and delete the TestFileXXX.log file.

end result in the folder may have the below file list

best regard
terence chua

See More: create bat file to purge log file

Report •

October 8, 2009 at 22:47:56
You should post this in the Programming Forum... the link is on the right hand side of this page.

Home Page

Report •

October 8, 2009 at 23:42:40
ok thanks

Best Regards
Terence Chua

Report •

Related Solutions

Ask Question