lowleveldesign / process-governor

This application allows you to put various limits on Windows processes.
MIT License
626 stars 62 forks source link

When I use CMD to start software #41

Closed 1qw223 closed 2 years ago

1qw223 commented 2 years ago

When I use CMD to start software, I found i can't to set cpurate procgov64.exe -e 50 -p 11140 cmd /c Testsoft.exe ERROR: (0x80004005): The parameter is incorrect

lowleveldesign commented 2 years ago

Please try: procgov64.exe -r -e 50 -- cmd /c Testsoft.exe. I added the -r parameter (as you probably want to apply the limit to testsoft.exe and not only cmd) and removed -p. You should either use -p <PID> or a path with arguments. If you don't need a new console window, you could start testsoft.exe directly from procgov: procgov64.exe -e 50 -- Testsoft.exe.