1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Send To MS-DOS prompt

Discussion in 'Windows XP' started by andymitchell, Feb 18, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. andymitchell

    andymitchell Thread Starter

    Joined:
    Feb 18, 2003
    Messages:
    2
    I am trying to come up with a quick way to open a MS-DOS prompt from within windows that automatically goes to the folder under the mouse pointer. e.g add MS-DOS prompt to the 'Send To' folder, right click on a folder in Windows Explorer and click 'Send To'. This should then open up a DOS prompt already in the highlighted folder. Any Ideas.
     
  2. Dan O

    Dan O

    Joined:
    Feb 13, 1999
    Messages:
    8,974
    What I did was assign Shortcut keys to the Command Prompt.

    How To: Select Start and Accessories. Right click the Command Prompt icon and select Properties. Select the option Shourtcut Key option and depress the keys you want to assign to invoke it. e.g., Ctrl+Alt+D
    Next select the Start in option and enter the drive and folder you want it to open.
    e.g., C:\Windows\SendTo

    Select Apply, OK, and give it a try. Enjoy.
     
  3. andymitchell

    andymitchell Thread Starter

    Joined:
    Feb 18, 2003
    Messages:
    2
    This will work, but only on a fixed folder. I wanted to be able to right click any folder in Explorer and go straight to the same path but at a DOS prompt.
     
  4. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    Start the Registry Editor (regedit.exe)
    Move to HKEY_CLASSES_ROOT\Folder\shell (you could use HKEY_CLASSES_ROOT\Directory\shell but it would then not apply to folders, whereas Folder does both)
    From the Edit menu select New - Key and enter a name of CmdHere (or anything else)
    Under the new key select New - Key and enter a name of command (lowercase)
    Under the key (CmdHere) double click on (Default) and enter a name that will be displayed when you right click on the directory, e.g. "Command Prompt Here"
    As an extra, if you a & to the front of a character it will cause it to be underlined, e.g. "&John Prompt here" would produce John Prompt here.
    Move to the command key and again double click on (Default) and enter
    \System32\cmd.exe /k cd "%1"
    e.g. c:\winnt\System32\cmd.exe /k cd "%1"
    You can use "%l" instead of "%1" which will support long file names.
    Close the registry editor
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/119472

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice