NirCmd: Useful commands

Following the Audio Guide you can find here, I also wanted to list some more useful features of NirCmd.

First of all, you need the Program from the NirSoft Page:

Download NirCmd 64-bit

Using a shortcut or the windows commandprompt, or a batch file you can use the following commands: 
 

restartexplorer
Restarts Windows Explorer gracefully.


shellrefresh

Initiate a general refersh for Windows Explorer. This refresh command can be useful if you make a change in the Registry related to the shell file types (For example, if you change the icon of .gif extension), and you want that your changes will take affect immediately.
 
setprocesspriority [process] [priority]
Set a new priority for the specified process.
In the [priority] parameter, you can specify one of the following values: normal, low, belownormal, abovenormal, high, realtime.
In the [process] parameter, you can specify the full path of the process filename (e.g: ‘C:Program FilesInternet Exploreriexplore.exe’) or the name of the process only, without the path (e.g.: iexplore.exe). You can also specify the Process ID, by adding the ‘/’ character as a prefix (e.g. /1120).
Examples:
setprocesspriority iexplore.exe high
setprocesspriority “c:winntsystem32calc.exe” low
setprocesspriority /1830 abovenormal
 

setprocessaffinity [process] [list of processor numbers]
Set the process affinity, which means – specifying the processors that the process is allowed to use (Only relevant for computers with more than one processor)
In the [process] parameter, you can specify the full path of the process filename (e.g: ‘C:Program FilesInternet Exploreriexplore.exe’) or the name of the process only, without the path (e.g.: iexplore.exe). You can also specify the Process ID, by adding the ‘/’ character as a prefix (e.g. /1120).
In the [list of processor numbers] parameter, you can specify the processor numbers that you want to use. 0 is the first processor, 1 is the second one, and so on.
Examples:
setprocessaffinity iexplore.exe 0 1
setprocessaffinity “c:winntsystem32calc.exe” 0 1 2 3
setprocessaffinity /1830 0

If you want a full overview of all functions, visit this page.

You may also like...