I have this in batch and the code works without
start /low. While compressing with
wzzip the CPU is 100% and all other programs hang.
So to fix this issue I've been trying to either set affinity or priority, but with
start /low inserted I continue to get error:
Windows cannot find '-ez'
Any help with this would be appreciated.
for /f "tokens=*" %%a in ('type "%Path%\dirlist.txt"') do ( start /low "c:\program files\winzip\wzzip" -ez -md "%%a.zipx" "%%a" CLS
Thanks for the feedback. With it I was able to make it run in priority low.
start "" /b /low /wait "c:\program files\winzip\wzzip.exe" -ez -md "%%~a.zipx" "%%~a"
It was very important to use
/wait command otherwise if you are using a for loop the program wzzip.exe runs all instances at once instead of running one then waiting for it to complete before running another.
Additionally, I changed the cpu core usage to 1 by using
start "" /b /low /affinity 0x1 /wait "c:\program files\winzip\wzzip.exe" -ez -md "%%~a.zipx" "%%~a"
Thanks for all the help.