|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