If we execute the exe as is then we will get: "I only work from the right click context menu". So, you now know what it does. <smile\>
When invoked from the right click context menu we may get this, for example, "LOG file: I only work with EXE files". So, now you know what it doesn't do.
To get it to run from the right click context menu we need to execute the following registry script. The right click context menu will now display "Run with switches".
Code: Select all
REGEDIT4
[HKEY_CLASSES_ROOT\*\shell\RunSwitch]
@="Run with switches"
; IMPORTANT: Edit the following @= line to reflect your location of RunSwitch.exe
; Don't forget to use \\ and not \
[HKEY_CLASSES_ROOT\*\shell\RunSwitch\command]
@="C:\\PBWin\\RunSwitch\\RunSwitch.exe %L"
; dummy line to make sure that a line is here <smile>
Code: Select all
REGEDIT4
[-HKEY_CLASSES_ROOT\*\shell\RunSwitch]
; dummy line to make sure that a line is here <smile>
Here is a screenshot:
The title is the exe we have right clicked on. We simply type the switches and click OK. With the above NIST-Time.exe will now run with the switches.
If we click OK with an empty input box then RunSwitch will simply close; as it will when we click on Cancel and the Close button.
The command tail is limited to 2048 characters. If you need more than that - shorten the switch names. <laugh>
Thats it! Nothing earth shattering but I wouldn't boot up without it.
Here is a link to a zip of the exe. The exe is tiny - 45.5KB.
RunSwitch.zip