Friday, July 10, 2009

Open Command Prompt here

Opening the command prompt/shell interpreter in a specific is handy, and is very common to much many people.
I'll be talking in this post about how to do it in three different platforms.

First Windows Vista

Recently I shared an article that shows how to do it in Vista, which is not more difficult than just holding another button before hitting mouse's right one.

Second Debian based systems

It is also as simple here as installing any other program, here is a How - to which illustrate the operations.
At the end an additional option is added to the right click.

By clicking it, the terminal should be opened in the specified directory (in my case the desktop):


Third Windows XP

Operations here are a bit more tricky, I'll go in some details:
  1. Open Control Panel => Tools Menu => Folder Options => File Types Tab
  2. Select the "File folder" file type.
  3. Click the "Advanced" button.
  4. Click New (to add new action).
  5. Enter action's name, which will be some thing like "Open Command prompt here".
  6. Enter
    cmd.exe /k cd "%L"
    against the "Application used to perform action".
    Menu state should end up to something like:


  7. Press OK, OK.
Good, but it is not the end.
We need now to assure that folders behave normally, i.e. The default action of the folder file type is to be opened by windows explorer.

  1. Press Start => Run
  2. Write
    Regedt32.exe
    and hit enter.
  3. Open HKEY_CLASSES_ROOT/Directory/Shell
  4. From the Edit list choose the name (Default).
  5. Edit Menu => Modify



  6. Enter None and hit OK.


Right click any folder now and note the new action:



No comments:

Post a Comment