Professional Webmasters Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Opening Command Prompt directly for a Particular Directory from Explorer

Go down

Opening Command Prompt directly for a Particular Directory from Explorer Empty Opening Command Prompt directly for a Particular Directory from Explorer

Post  andry Tue Jul 13, 2010 4:45 am


One of the annoying features of Windows operating systems in general is that the command prompt is not too well integrated with the desktop. This means that any time you drop to the command prompt, you will have to navigate to the directory you need manually, instead of being able to drop into any folder you want from the desktop interface. Since at some point you will likely find yourself in need of the command prompt to perform some function on your CP system, we thought we'd show you a quick registry hack that will enable you to call up a command prompt from any folder.

Start Regedit.

Navigate to 'HKEY_CLASSES_ROOT \ Directory \ shell'

Create a new key called 'Command.'

Edit the default REG_SZ value for this new key with the text you wish to see when you right click a folder to open the command prompt window. Assign it a name that's appropriate, for example: 'open command prompt in this folder' or something similar.

Under the new 'command' key, create another key called 'command.'

Give the default value in this key the value of 'cmd.exe /k "cd %L"'

After you restart your computer, you will be able to right click on any folder and select your new command to instantly open a command prompt window to that specific folder.
andry
andry
Moderator
Moderator

Posts : 467
Join date : 2010-05-07

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum