Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Vista - get command line to open in specified directory

Reply
 
Old 04-26-2007   #1 (permalink)
Mike Zielinski


 
 

get command line to open in specified directory

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

My System SpecsSystem Spec
Old 04-26-2007   #2 (permalink)
Les


 
 

Re: get command line to open in specified directory

"Mike Zielinski" <Mike Zielinski@discussions.microsoft.com> wrote in message
news:C9D21EE8-804F-43AE-A22B-0C63382CFD07@microsoft.com...
>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



My System SpecsSystem Spec
Old 04-26-2007   #3 (permalink)
Jeff


 
 

Re: get command line to open in specified directory

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 Zielinski" <Mike Zielinski@discussions.microsoft.com> wrote in message
news:C9D21EE8-804F-43AE-A22B-0C63382CFD07@microsoft.com...
>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


My System SpecsSystem Spec
Old 04-26-2007   #4 (permalink)
Neil Harley


 
 

Re: get command line to open in specified directory

Mike Zielinski wrote:
> 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.


My System SpecsSystem Spec
Old 04-26-2007   #5 (permalink)
Mike Zielinski


 
 

Re: get command line to open in specified directory

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" wrote:

> Mike Zielinski wrote:
> > 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.
>
>

My System SpecsSystem Spec
Old 04-26-2007   #6 (permalink)
Ramesh, MS-MVP


 
 

Re: get command line to open in specified directory

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


"Mike Zielinski" <MikeZielinski@discussions.microsoft.com> wrote in message news:E7941ABF-5E59-4531-8FD8-8A1E26C0787A@microsoft.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" wrote:

> Mike Zielinski wrote:
> > 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.
>
>

My System SpecsSystem Spec
Old 04-27-2007   #7 (permalink)
Neil Harley


 
 

Re: get command line to open in specified directory

Ramesh, MS-MVP wrote:
> 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/
>


It may be but I couldn't get it to show on the menu no matter how hard I
pressed the Shift key ;-)

My System SpecsSystem Spec
Old 04-27-2007   #8 (permalink)
Neil Harley


 
 

Re: get command line to open in specified directory

Ramesh, MS-MVP wrote:
> 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.

My System SpecsSystem Spec
Old 04-27-2007   #9 (permalink)
Ramesh, MS-MVP


 
 

Re: get command line to open in specified directory

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" <nomail@home> wrote in message news:58DA2E1D-8D3F-42C6-A1AF-C6395A2F3EA2@microsoft.com...
Ramesh, MS-MVP wrote:
> 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.

My System SpecsSystem Spec
Old 04-30-2007   #10 (permalink)
David Mayerovitch


 
 

Re: get command line to open in specified directory

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

"Neil Harley" <nomail@home> wrote in message
news:311F1346-AFD0-4B2F-9629-97846D6FD0DD@microsoft.com...
> Ramesh, MS-MVP wrote:
>> 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/
>>

>
> It may be but I couldn't get it to show on the menu no matter how hard I
> pressed the Shift key ;-)



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
From a command line open several websites in multiple tabs VB Script
Running a command from inside a script, command line is corrupted PowerShell
how to open standard Run dialog from command line? General Discussion
how to Open notepad with a command-line argument VB Script
Open Scrreensaver Settings From the Command Line? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46