Tip

Launch command prompt at pre-selected folder

This tip was submitted to the searchWin2000 Tip Exchange by member Gerry Morgan. Let other users know how useful it is by rating the tip below.


This tip enables you to right-click on a folder in the Windows Explorer and launch a command prompt window that is already at the selected folder (no need to use 'cd' to get there).

  1. Launch Windows Explorer.
  2. Choose Tools from the menu, then Folder Options.
  3. In the Folder Options window, click the File Types tab.
  4. Scroll down the list until you reach the items whose Extension is 'N/A'. One of these items is called 'Folder'.
  5. Click on the 'Folder' item to select it, then click the Advanced button. In the Edit File Type window, you will see a list of actions (probably only 'explore' and 'open').
  6. Click the New button. The New Action dialog will appear.
  7. In the text box labeled 'Action:', type "Command Prompt Here" (without the double quotes).
  8. In the text box labeled 'Application used to perform action:', type "cmd.exe" (without the double quotes).
  9. Click OK to dismiss each dialog in turn.
  10. In Windows Explorer, right click on a folder. Notice that there is now a new item in the context menu called "Command Prompt Here". Clicking this item will open a command prompt at the chosen folder.


This was first published in February 2002

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.