Skip to main content

Open Command Prompt here

How can I add a Command Prompt option to the default Explorer right click context menu?
If you find that you frequently open a Command Prompt window and change to a specific directory, you can add the Command Prompt to your shortcut menu. This option enables you to right-click on a folder within Windows Explorer and choose the Command Prompt - which opens a Command Prompt window with that folder as your active directory.
To add the Command Prompt option to the default right click context menu in Windows Explorer you can do one of the following:

Method #1: Microsoft Powertoys

This is the easiest and most idiot-proof method.

You can download the  MS Powertoys found here. Download the Open Command Window Here file and install it.

Method #2: Send to Toys




Send To Toys is an enhancement of the Send To system menu. It has many nice features including:
  • Send To Toys Control Panel Applet allows you to manage the Send To system menu content, and configure Send To Toys settings.
  • "Add to Send To menu" and "Remove from Send To menu" allows you to personalize the Send To system menu for drives, folders, and programs.
  • Send To "Clipboard (as name)" copies the name of the file or files to the clipboard. Hold down the CTRL key to change the settings for this extension.
  • Send To "Command Prompt" opens a DOS console window, setting the current directory to the selected folder. If the selection was a file, the folder containing the file will be the active directory and the name of the file will be typed for you at the prompt. Hold down the CTRL key to change the active directory to a different folder
  • Send To "Favorites" adds a shortcut to your Favorites list. Hold down the CTRL key for the "Add Favorite" dialog.
  • Send To "Folder..." sends a file or files to another folder, you will be shown a dialog box that lets you choose where the files should be copied. To move the files press and hold down the SHIFT key. The creation of a new folder is not supported on Windows 95, 98, and NT.
  • Send To "Recycle Bin" send a file or files to the Recycle Bin. Hold down the CTRL key to perform a file shredding.
  • Send To "Run..." sends a file or files to the Run command dialog
Send to Toys is freeware and can be installed on any version of Windows.
Download Send to Toys v2.4 (527kb)

Method #3: Manually add the context menu

  1. In explorer, open Tools, Folder Options.
  2. Select the File Types tab.
  3. For Windows XP: Go to NONE / Folder.
  4. For Windows 2000: Press n to scroll to the N/A section.
  5. For Windows NT/98/95: Press f to scroll to the Folders section.
  6. Select the entry labeled Folder
  7. For Windows 2000/XP: Press Advanced button.
  8. For Windows NT/98/95: Press Edit button.
  9. Select New
  10. In the action block type "Command Prompt" without the quotes.
  11. In the app block type "cmd.exe" without the quotes.
  12. Save and exit Folder Options.
Now right click on Start, you should have a new drop down option. Open explorer and right click on a folder, select Command Prompt and a command window opens in that folder.
Read this thread for some information on how to remove the context menu:

Method #4: Through batch file

  1. Begin by creating a batch file. For example, you could create a batch file named StartPrompt.cmd. Add the following commands to your batch file:
@echo off
cd /d %1
Title %~f1
  1. Save this batch file to your Windows NT/2000/XP root directory (which is usually C:\WINNT or C:\WINDOWS for XP).
  2. Open Windows Explorer.
  3. Choose View | Options to display the Options dialog box.
  4. Select the File Types tab.
  5. In the list of Registered File Types, select Folder then click Edit.
  6. Click New to display the New Action dialog box.
  7. In the Action text box, type Command Prompt.
  8. In the Application Used To Perform Action text box, type:
cmd.exe /a /k c:\winnt\StartPrompt "%l"
  1. Click OK to close the New Action dialog box, then click Close twice.
Open Windows NT Explorer, then right-click on a folder. You should now see a new option called "Command Prompt" on the shortcut menu. If you choose this option, Windows Explorer opens a new Command Prompt window with the selected directory as your current directory.

Method #5: Through the Registry

  1. Navigate in your Registry to
    HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
    and create a key called "Command Prompt" without the quotes.
  2. Set the default string to whatever text you want to appear in the right-click menu.
  3. Create a new key within your newly created command prompt named "command," and set the default string to
    cmd.exe /k pushd %1
    You may need to add %SystemRoot%\system32\ before the cmd.exe if the executable can't be found.
  4. The changes should take place immediately. Right click a folder and your new menu item should appear.
Note: You can do the same for Windows 98. Type in "c:\windows\command.com /k pushd %1" (without the quotes).

Comments

Popular posts from this blog

Open Documents Formats in MS Office

Open Document Format (ODF) is an open standard file format OpenOffice.org and others use. File extensions include .odt (text), .ods (spreadsheet), and .odp (presentation). By default, Microsoft Office does not open these file formats; however, it is possible with a plugin. For office 2003 users If you have Office 2003, Download and install the Sun ODF Plugin should just work.You can download the Sun ODF Plugin from here. P For office 2007 users First you need to Install Service Pack 1 for Office 2007. Install Sun ODF Plugin for Microsoft Office . Open ODT document via File > Open, or by double-clicking the ODT file and when prompted for the application to open it with, choose Word. If you don’t have administrator privileges to install software, you can try an online converter such as Zamzar or Media Convert . You can also upload ODT documents to Google Docs or Zoho Writer . If you want to open ODT documents locally but want to stay away from MS Office, try the lightweig...

Command Line SMS

Send SMS to any number in India via way2sms. https://github.com/samueljohnson/smsindia compile with: g++ smsindia.cxx -o smsindia -lcurl Not tested under windows! Update: The SMS API does not seem to work now a days!

Remove cftmon.exe permanently

Have you got MS Office installed? If so you may have noticed a little program in the task manager, under processes called cftmon.exe. Have you ever asked yourself....what the hell is it or...... have you removed it only to find it's back again..... It is a relatively easy removal and it will stay gone, just follow these steps. This pesky little program is related to speech recognition in MS Office. - Just open up Add/Remove programs from Control panel. - locate MS Office and click on Change - Click on Add/Remove features (and check mark "advanced customizations of features") - Expand Excel tab - Click on "text to speech" and select "Not Available" - Expand "Office Shared Features" - Click on "Alternative User Input" and select "Not Available" (this should remove both Speech and Handwriting) - Expand "Proofing Tools" under "Office Shared Features" and select under both French and Spanish "English - ...