get command line to open in specified directory

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Vista Premium and I want to know if there is a way to make the command
line in a specified directory. I use it for only one directory and I always
want it to open in that directory. Is there a way to do this? And if so how?
Mike
 
Mike Zielinski said:
I have Vista Premium and I want to know if there is a way to make the
command
line in a specified directory. I use it for only one directory and I
always
want it to open in that directory. Is there a way to do this? And if so
how?
Mike


Try this: shift right click on the folder you want to open a command window
on and the context menu has that option available.

--
regards,
Les Hay, Livingston, Scotland



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000736-1, 26/04/2007
Tested on: 26/04/2007 17:35:49
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com
 
Just make a shortcut for Command prompt. (CMD.EXE). Then right click on the
shortcut and go to properties, change the "start in" field to whatever
directory you want to open
 
Mike said:
I have Vista Premium and I want to know if there is a way to make the
command line in a specified directory. I use it for only one
directory and I always want it to open in that directory. Is there a
way to do this? And if so how? Mike

paste the following into notepad and save it as a registry file. You may
need to show file extensions to change the txt to reg. Once done, double
click (or r/c and merge) and you'll get a Command Prompt here on all
directories:

--copy from below here--

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]
@="Command &Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command]
@="cmd.exe /k cd %1 "

--copy above here--

Or do as someone else suggested and create a shortcut to cmd.exe with
whatever Start In path.
 
Thank you all for your answers, for now I am putting the folder name in the
Start In fiield
Thanks again,
Mike Zielinski
Neil Harley said:
Mike said:
I have Vista Premium and I want to know if there is a way to make the
command line in a specified directory. I use it for only one
directory and I always want it to open in that directory. Is there a
way to do this? And if so how? Mike

paste the following into notepad and save it as a registry file. You may
need to show file extensions to change the txt to reg. Once done, double
click (or r/c and merge) and you'll get a Command Prompt here on all
directories:

--copy from below here--

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]
@="Command &Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command]
@="cmd.exe /k cd %1 "

--copy above here--

Or do as someone else suggested and create a shortcut to cmd.exe with
whatever Start In path.
 
It's actually included by default in Vista.

"Open Command Window Here" context menu option on file system folders in Windows Vista:
http://www.winhelponline.com/articles/109/1/

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Thank you all for your answers, for now I am putting the folder name in the
Start In fiield
Thanks again,
Mike Zielinski
Neil Harley said:
Mike said:
I have Vista Premium and I want to know if there is a way to make the
command line in a specified directory. I use it for only one
directory and I always want it to open in that directory. Is there a
way to do this? And if so how? Mike

paste the following into notepad and save it as a registry file. You may
need to show file extensions to change the txt to reg. Once done, double
click (or r/c and merge) and you'll get a Command Prompt here on all
directories:

--copy from below here--

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]
@="Command &Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command]
@="cmd.exe /k cd %1 "

--copy above here--

Or do as someone else suggested and create a shortcut to cmd.exe with
whatever Start In path.
 
Interesting! I'm sure it's included by default in Vista. Don't know why it doesn't work for you.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Neil Harley said:
It's actually included by default in Vista.

"Open Command Window Here" context menu option on file system folders
in Windows Vista:
http://www.winhelponline.com/articles/109/1/

I couldn't get the Open Command entry to show here which is why I resorted
to the reg entry.
 
I find that Shift-RightClick will add "Open Command Window Here" to the
context menu only if you click on the folder in the right-hand pane of
Windows Explorer, or whatever it is called in Vista.

David
 
Back
Top