1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Opening Cmnd Prompt in given folder

Discussion in 'Legacy Windows' started by chuckmg, 2002/10/11.

Thread Status:
Not open for further replies.
  1. 2002/10/11
    chuckmg Contributing Member

    chuckmg Inactive Thread Starter

    Joined:
    2002/01/08
    Messages:
    236
    Likes Received:
    0
    I seem to recall a method for opening command prompt from IE such that it opens in the selected folder. Can't remember how. Is my memory right?

    Chuck
     
  2. 2002/10/11
    Hulka

    Hulka Inactive

    Joined:
    2002/01/07
    Messages:
    330
    Likes Received:
    0
    You probably meant Windows Explorer and not Internet Explorer, but anywho...the following is taken from http://www.winscriptingsolutions.com/Articles/Index.cfm?ArticleID=13571.

    A Powertoy, Command Prompt Here, can be downloaded from Microsoft (and is also included with the resource kit, cmdhere.inf), however all this does is update a couple of registry entries and can be accomplished manually allowing greater flexibility

    1. Start the Registry Editor (regedit.exe)
    2. 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)
    3. From the Edit menu select New - Key and enter a name of CmdHere (or anything else)
    4. Under the new key select New - Key and enter a name of command (lowercase)
    5. 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.
    6. 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.
    7. Close the registry editor

    :cool:
     
    Last edited: 2002/10/11

  3. to hide this advert.

  4. 2002/10/11
    chuckmg Contributing Member

    chuckmg Inactive Thread Starter

    Joined:
    2002/01/08
    Messages:
    236
    Likes Received:
    0
    Hulka,

    Thanks a lot. Just what I needed. It makes a great difference in practice.

    Chuck
     
  5. 2002/10/11
    Hulka

    Hulka Inactive

    Joined:
    2002/01/07
    Messages:
    330
    Likes Received:
    0
    You're quite welcome. :D
     
Thread Status:
Not open for further replies.

Share This Page

  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.