Question

I am looking for a solution, to limit the size of the file, when redirecting console output to a logfile.

Is there any existing solution?

REM limit logfile.txt to x MB
command > logfile.txt
Était-ce utile?

La solution

I know this is too late, but i hope that it may help someone else

What i did is after executing my main command and if it was a success i execute a script to check the log file size ...

This can be achieved using

&& execute_your_filzsize_limit_check_script_or_program

for exemple

command > logfile.txt && filesize_check.exe
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top