regedit

{Tutorial} – Open Command Prompt Here (right click shortcut)

There are times when everyone wants to open a command prompt when he navigates a folder but it’s kind of boring and time taking to open the command prompt and manually navigate to the folder he wants. Here i am going to show you how you can add a shortcut when you right click a folder in order to open that folder in command prompt or run a file in command prompt :P

  1. Open Regedit (Start->Run->Regedit  Or  Start->type in search box “regedit” without quotes)
  2. Navigate to HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
  3. Now right click and ADD a key
    name Command Prompt
    default value Open the Directory in CMD (double click default value to change its value)
  4. Now right click inside that key and create a new key
    name command
    default value cmd.exe /k pushd %L (double click default value to change its value)

This works for every Windows System (xp/vista/7)!!! But in Vista and 7 there is new trick you can use if you are afraid of changing registry values.

You can right click the folder you want to open in command prompt by having the SHIFT key pressed and you will have the option in the new menu. (SHIFT + Right Click the folder)

I Made two files with the registry keys for you if you don’t want to get smudged with regedit.
Download it and just run it.
Command Prompt Registry(directories) for Windows 98 and NT4.0 Systems
Command Prompt Registry(directories) for Windows 2000/ME/XP/VISTA/7

Now let’s say you want to open a file into the command Prompt and not a directory we can do the same trick but with other KEYS. Download the files below or do it manually with Regedit.

  1. Open Regedit (Start->Run->Regedit  Or  Start->type in search box “regedit” without quotes)
  2. Navigate to HKEY_LOCAL_MACHINE/Software/Classes/*/Shell
  3. Now right click and ADD a key
    name Command Prompt
    default value Open the File in CMD (double click default value to change its value)
  4. Now right click inside that key and create a new key
    name command
    default value cmd.exe /k %1 (double click default value to change its value)

Download the .reg files below if you just want to import the shortcuts.!!!
Command Prompt Registry(files) for Windows 98 and NT4.0 Systems
Command Prompt Registry(files) for Windows 2000/ME/XP/VISTA/7

Nice tricks for anyone that uses command prompt a lot! :P