Creating A Per-Computer Shortcut Menu Command In Microsoft Windows XP


To create a per-computer shortcut menu command, follow these steps:

1. At a command prompt, type regedit to run Registry Editor.

2. In HKCR, locate the extension key for the file type whose menu you want to customize. Note the default value of this key.

3. Also in HKCR, locate the key that matches the default value you found in step 2.

4. If this key does not already have a Shell subkey, create it. (Choose Edit, New, Key, and name the key Shell.)

5. Create a subkey of Shell, and give it the text of your new command, as you want it to appear on the shortcut menu. When you create a shortcut menu command through the conventional user interface (the Folder Options dialog box), Windows applies your menu text to the default value of the new verb subkey. This step is not essential, however. If you omit it, Windows uses the name of the subkey as the menu command.

6. Create another subkey within the one you just created, and name this subkey Command.

7. As the default value of Command, enter the command string that your command should execute. Do not use environment variables in this command string. Enclose the command string in quote marks. To supply the name of the file or folder that you right-click as an argument for the command, follow the command string with the placeholder %1. Enclose the %1 separately in quote marks.