Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > get command line to open in specified directory

Reply
Thread Tools Display Modes

get command line to open in specified directory

 
 
Mike Zielinski
Guest
Posts: n/a

 
      04-26-2007
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
 
Reply With Quote
 
 
 
 
Les
Guest
Posts: n/a

 
      04-26-2007
"Mike Zielinski" <Mike > wrote in message
news:C9D21EE8-804F-43AE-A22B-...
>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



 
Reply With Quote
 
Jeff
Guest
Posts: n/a

 
      04-26-2007
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 > wrote in message
news:C9D21EE8-804F-43AE-A22B-...
>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


 
Reply With Quote
 
Neil Harley
Guest
Posts: n/a

 
      04-26-2007
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.


 
Reply With Quote
 
Mike Zielinski
Guest
Posts: n/a

 
      04-26-2007
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.
>
>

 
Reply With Quote
 
Ramesh, MS-MVP
Guest
Posts: n/a

 
      04-27-2007
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" <> wrote in message news:E7941ABF-5E59-4531-8FD8-...
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.
>
>

 
Reply With Quote
 
Neil Harley
Guest
Posts: n/a

 
      04-27-2007
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 ;-)

 
Reply With Quote
 
Neil Harley
Guest
Posts: n/a

 
      04-27-2007
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.

 
Reply With Quote
 
Ramesh, MS-MVP
Guest
Posts: n/a

 
      04-27-2007
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-...
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.

 
Reply With Quote
 
David Mayerovitch
Guest
Posts: n/a

 
      05-01-2007
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-...
> 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 ;-)



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP command line Qfreed Windows Vista Networking 2 08-25-2007 02:31 PM
Open Scrreensaver Settings From the Command Line? glennhoward Windows Vista General Discussion 1 07-28-2007 10:20 PM
Re: Command-line reference A-Z Jon Windows Vista General Discussion 0 07-25-2007 12:43 AM
Where is the help for command line commands? Peter Flindt Windows Vista General Discussion 6 07-24-2007 01:51 PM
Command line switch Murali Rajendran Windows Vista Mail 4 02-28-2007 01:06 AM



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 47 48 49 50 51 52 53 54 55 56 57 58 59