Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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
"TestFileXXX.log"
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
TestFile001.zip
TestFile002.zip
TestFile003.zip
TestFile004.zip
...
...
TimeMonitor.txtbest regard
terence chua

You should post this in the Programming Forum... the link is on the right hand side of this page.
Home Page http://ewen.uuuq.com/

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |