Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Does anyone know of a way (specific to 7zip or general) to limit the CPU usage of 7zip while it is archiving a long list of files? OS is Windows Server 2008 R2, and 7zip is run via command line from a batch file.

share|improve this question

2 Answers 2

Don't worry about the actual CPU percentage, instead you should start the process using a different priority. So from the command line you should be able to use start /low command to start a command that only runs the system is IDLE.

share|improve this answer
Great, thanks... –  UpTheCreek May 10 '11 at 18:15

If you are working in powershell you can do something like this:

$start = New-Object System.Diagnostics.ProcessStartInfo
$start.Arguments = "--argument1 --argument2"
$start.FileName = "C:\bin\7zip.exe"
$proc = New-Object System.Diagnostics.Process
$proc.PriorityClass = [System.Diagnostics.ProcessPriorityClass]::BelowNormal
$proc.StartInfo = $start
share|improve this answer
Thanks. I'm not currently using powershell, but am thinking of updating the old batch files to it. –  UpTheCreek May 10 '11 at 18:15
I tried this with ffmpeg it did not work got an error. Error:**Exception setting "PriorityClass": "No process is associated with this object." + $proc. <<<< PriorityClass = [System.Diagnostics.ProcessPriorityClass]::BelowNormal + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyAssignmentException Method invocation failed because [System.Boolean] doesn't contain a method named 'WaitForExit'.** Had to chop the error short because of character limit but that's the general idea. –  justif Aug 18 '12 at 19:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.