Pass parameters via command line argument to .exe

command line

How can I pass parameters from cmd prompt ?? I am trying to follow the following instructions:

For information about usage and parameters, simply run PGRIdleStateFix from the command prompt.

The parameters are:

disable
-Disables all processor sleep states

enable
-Enables processor sleep states

print
-Prints the current status of processor sleep states

Best Answer

Open a command prompt (Windows+R, type "cmd" and hit enter). Then change to the directory housing your executable ("cd enter-your-directory-here"), and run the command with the parameters.

If you'd like to do it via the menu shortcut (assuming installing that utility adds a start menu shortcut), navigate to the menu item, but instead of clicking it, right-click and select properties. At the end of the "Target:" field, add your parameter.

Related Question