сряда, 2 юли 2008 г.

context menu dos prompt

If we want to access to a folder in DOS prompt, we normally run the cmd command and get to that folder. However, I have another way to access to it by right-clicking on folder and selecting Command Prompt in the menu. This is easy to create like creating “Copy to Folder” in context menu that I wrote long before. To see how to create “Copy to Folder”, click here. OK, let you follow the steps below.

* Open Registry Editor by running command regedit.
* Access to the path below,

HKEY_CLASSES_ROOT\Directory\shell

* Right click on the shell folder and choose New > Key.
* Name the new key Command Prompt.
* Right click on Command Prompt and choose New > Key.
* Name it Command.
* In the right page of the Registry Editor window, double click on the Default.
* Type Cmd.exe /k cd “%1″ then click OK
* Now you obtain Command Prompt in Context Menu, try right-clicking on a folder you want to get in.

Key words for uncle Google: context menu dos prompt
Source article: http://www.computerfreetricks.com/2007/11/26/create-command-prompt-in-context-or-popup-menu/

Няма коментари: