How can I open a cmd window in a specific location?
How can I open a cmd window in a specific location without having to navigate all the way to the directory I want?
windows cmd
add a comment |
How can I open a cmd window in a specific location without having to navigate all the way to the directory I want?
windows cmd
add a comment |
How can I open a cmd window in a specific location without having to navigate all the way to the directory I want?
windows cmd
How can I open a cmd window in a specific location without having to navigate all the way to the directory I want?
windows cmd
windows cmd
edited Jan 6 '17 at 23:05
Peter Mortensen
13.8k1986113
13.8k1986113
asked Sep 13 '08 at 21:51
Haim BenderHaim Bender
3,19584352
3,19584352
add a comment |
add a comment |
36 Answers
36
active
oldest
votes
1 2
next
You may want to look at this "PowerToy" from Microsoft:
Open Command Window Here
This PowerToy adds an "Open Command
Window Here" context menu option on
file system folders, giving you a
quick way to open a command window
(cmd.exe) pointing at the selected
folder.
EDIT : This software will not function on a version of Windows earlier or later than Windows XP.
23
I think this answer combined with Michael Ratanapintha's answer about using shift-right click in vista and 2008 answers this question fully.
– Joshua Hudson
Sep 14 '08 at 2:51
2
The link in the answer in no longer valid, but I believe it points to this download: go.microsoft.com/fwlink/?LinkId=211471
– nerdherd
Jul 25 '13 at 19:53
4
for WinXP and below.
– vinnief
Jan 21 '14 at 16:45
5
it is valid for windows xp only
– vogash
Nov 24 '15 at 8:56
1
how to uninstall it ?
– Blue Clouds
Jul 13 '17 at 13:13
add a comment |
This might be what you want:
cmd /K "cd C:Windows"
Note that in order to change drive letters, you need to use cd /d
. For example:
C:WindowsSystem32cmd.exe /K "cd /d H:Python"
(documentation)
7
Thanks ... Even shorter from GUI : WinLogo + R , type : cmd /c "start /max cmd /K "cd C:Windows""
– Yordan Georgiev
May 28 '09 at 6:07
1
On windows 7 you can save yourself a couple of keystrokes and use a lower case k and leave out the double quotes when your pathname has no space
– Phil C
Jun 7 '13 at 14:24
4
Want to start with a clean prompt without the initialcd
command shown? Append&cls
to the string like so:cmd.exe /K "cd /d H:Python&cls"
(documentation) And save this line into ajumpstart.bat
file for easy access by just double clicking it.
– Christiaan Westerbeek
Jun 6 '14 at 18:02
4
Why has this "answer" received so many up votes? Granted it answers the "letter" of the question, but not the "spirit"! This requires one to "...to navigate all the way to the directory I want." Ok, perhaps not "navigate", but rather "type", which is hardly a shortcut!
– raven
Sep 6 '14 at 19:23
13
The reason this answer has received so many upvotes is that it works for a shortcut. I keep a collection of shortcuts on my taskbar that each open a command prompt window in various project folders. In Windows 8, if you create a shortcut to start an elevated command prompt window, it ignores the "Start in" folder. The workaround is to place the following in the "Target" field (not the "Start in" field)%windir%system32cmd.exe /k cd "My Projects"
.
– rossmcm
Jan 29 '15 at 19:12
|
show 3 more comments
If you have Windows Vista or later, right-click on the folder icon in Explorer while holding the Shift key, and then click on the "Open command window here" or "Open PowerShell window here" context menu option.
If you're already in the folder you want, you can do one of the following:
- [only Win8+] Click the Explorer Ribbon's File button, then click on "Open command window here" or "Open PowerShell window here".
Shift-right-click on the background of the Explorer window, then click on "Open command window here" or "Open PowerShell window here". (recommended by Kate in the comments)- [only Vista or Win7] Hold down Shift when opening the Explorer File menu, then click on "Open command window here". If you can't see the menu bar, open the File menu by pressing Alt-Shift-F - Alt-F to open the File menu, plus Shift.
For Windows XP, use the PowerToy mentioned by dF to get the same function.
2
I'm running Server 2008 here and I don't get an "Open Command Window Here" context menu option when I Shift+right-click on a directory... ...doesn't work on Vista x64 either.
– raven
Oct 18 '08 at 21:20
Works fine in Vista x64 Home Premium, and I assume other versions as well. It's about midway down the list. Note that a file cannot be selected when you right click.
– Dan Homerick
Jul 31 '09 at 4:45
6
These work in Windows 7 and Server 2008 R2 also. Make sure you right click in the background and not on a file.
– Kate Gregory
Nov 2 '11 at 13:34
3
Works awesome in Windows 7, for me this is the best, shortest and most preferred way. Thanks @Michael
– Anmol Saraf
Dec 17 '12 at 8:04
1
Only shows me Windows Shell in Windows 10... suggestions?
– jaminroe
Oct 31 '17 at 4:34
|
show 4 more comments
Assuming that in File Explorer you have opened the target directory/folder, do this:
Click on address bar, alternatively press Alt+D
Now when address bar is highlighted, type cmd in the bar.
Press Enter key
You will notice that command prompt from that folder
1
This is a cool trick. But do you know of a way to do this with an elevated command prompt?
– smead
Mar 24 '16 at 1:12
5
@smead Click on the folder, click on the File menu of Explorer, then click on then arrow next to 'Open command prompt' . Then you will see an option to open cmd as Admin
– san1deep2set3hi
Mar 25 '16 at 18:11
@san1deep2set3hi I don't get an arrow next to Open command prompt. I'm in Win7 Pro, maybe that was added in a later OS?
– smead
Mar 26 '16 at 6:59
2
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 2:59
1
wow, this is a huge time saver. Thanks
– vnkid
Sep 6 '18 at 12:45
|
show 11 more comments
From Windows 7 up to some versions of Windows 10, it is very simple to open a command prompt anywhere you wish, without navigation using command "cd".
Try the following one.
Click the mouse's right button by holding Shift key .
It will produce an option like this. Then simply select the "Open command window here " option.
The latest versions of Windows 10 have replaced this feature with "Open Powershell here".
Strangely I don't have this item
– Manuel Di Iorio
Oct 30 '15 at 19:24
Me too, so I'm going to take a guess this is only available in Enterprise versions of Windows 7+ (Not home)
– MackieeE
Feb 9 '17 at 9:35
add a comment |
Use the /K switch. For example
cmd /K "cd /d c:WINDOWS"
Will create a cmd window at the C:Windows directory
This worked perfectly when I tried to create a Batch file & set a default working directory for it. Thanks a ton for sharing!
– Devner
May 20 '16 at 13:11
add a comment |
On Windows Vista, Windows 7 and Windows 10 simply hold down the Shift key and right-click on a folder.
The context menu will contain an entry titled: "Open command window here"
Update: Type "cmd" in the address bar of Explorer and press enter
Update 2: In windows 10, go to file menu and select "Open Windows PowerShell". There is an option for running as administrator.
I had this working on Windows 7 but in on my new laptop with Windows 10 it is not present in the popup menu.
– Jason S
Oct 29 '18 at 16:44
The "cmd" trick works, though -- thanks!
– Jason S
Oct 29 '18 at 16:44
add a comment |
Just write cmd
in the address bar, it will open in the current folder.
Niiiiiiiiiiice!
– Gras Double
Aug 25 '18 at 17:30
add a comment |
Create a shortcut and edit the "Start In" property of the shortcut to the directory you want the cmd.exe to start in.
add a comment |
Also, here is a shortcut to open a console in any windows folder:
- Open any folder on windows explorer.
- Press
Alt + D
to focus the adress bar - type
cmd
and press enter
Very practical shortcut.
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
This is the best option.
– Nirmal Mangal
Sep 24 '18 at 18:59
add a comment |
In Windows 8, you can click the address bar and type "cmd" (without quotes) and hit enter. This will open the cmd window in the current path.
4
Unless you have a batch/command script called cmd.bat or cmd.cmd, in which case it will execute that file. LOL
– kakridge
Jun 23 '14 at 13:26
It works in windows 7 too.
– qqqqq
Feb 23 '16 at 23:26
add a comment |
I just saw this question and cannot help to post my AutoHotkey script for cmd on Windows XP. You can spot the hot keys in the script. The nice thing is when your current windows is Explorer, the cmd will open in the path showing in the address bar.
I keep this script in a folder where I store all green tools (including AutoHotkey). For a new machine, I just copy the folder, double click the script to associate .ahk with AutoHotkey and create a shortcut in my startup folder. It is faster than installing PowerToys.
; Get working folder
GetWorkingFolder() {
if WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass") {
ControlGetText, path, Edit1
return %path%
} else if WinActive("FreeCommander") {
Send, {CTRLDOWN}{ALTDOWN}{INS}{ALTUP}{CTRLUP}
Sleep, 100
return clipboard
} else {
return "C:"
}
}
#IfWinActive,
#c::
path := GetWorkingFolder()
Run, %ComSpec%, %path%
return
; PowerShell
#+C::
path := GetWorkingFolder()
Run, %SystemRoot%system32WindowsPowerShellv1.0powershell.exe, %path%
return
#^c::
Run, %ComSpec%, %temp%
return
#!c::
path := GetWorkingFolder()
Run, %comspec% /k "%VS90COMNTOOLS%vsvars32.bat", %path%
return
; irb
#!b::
path := GetWorkingFolder()
Run, c:cygwinbinruby /usr/bin/irb, %path%
return
; Bash
#b::
path := GetWorkingFolder()
Run, bash --login, %path%
return
; Paste in console
+INS::
if WinActive("ahk_class ConsoleWindowClass") {
WinGetPos, x, y, w, h, A
MouseGetPos, mx, my
;MsgBox x=%x% y=%y% w=%w% h=%h% mx=%mx% my=%my%
if (mx < 10)
mx = 10
else if (mx > w - 30)
mx := w - 30
if (my < 40)
my = 40
else if (my > h)
my := h - 10
MouseClick, right, mx, my
}
return
For anyone who is interested, you can find this script at rwin on github
2
+1 for solving the exact problem I was trying to solve, a year later. Thanks for the script.
– mike9322
Mar 3 '12 at 16:10
It's now part of my windows tool set, you can find it here: code.google.com/p/rwintools. The script has also been updated to support windows 7. I am planning to add more document recently.
– Codism
Mar 4 '12 at 21:37
Wow. I only just discovered AutoHotkey and was just looking for this /exact/ thing. Thanks so much!
– iono
Oct 31 '12 at 15:50
add a comment |
Update: This is built into Windows now. See this answer.
The XP powertoy is a good option, but I thought I'd post another, in case you'd like to "roll your own". Create a text file, name it anything.reg, paste in the code below, save it, then double-click on it to add it to the registry (or just add the info to the registry manually if you understand what's going on in this .reg file).
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...]
@="Command Prompt Here..."
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...command]
@="cmd.exe "%1""
Update: After an Windows-update, Win10 removed the cmd-here feature. To reactivate it you've to use:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /s /k pushd "%V""
The entry ShowBasedOnVelocityId
is mandatory
add a comment |
For windows 7 or later, inside the target folder address bar just type cmd. That is it. It will open up command prompt with path set to your present directory.
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
add a comment |
Easiest way is to goto the address bar of the Windows Explorer and type cmd
there. It will automatically open the command prompt window for you.
The question was about how to open a prompt in a specific directory. This doesn't answer the question.
– solarissmoke
Jun 3 '16 at 2:36
1
this is nice idea and works, with just one exception: if it has sub folder named cmd.
– user6169399
Jun 3 '16 at 2:54
@solarissmoke this actually does answer the question: navigate to the directory in Explorer, then typecmd
in the directory URL at the top of the explorer window. It opens cmd right at the window's directory. No navigation in the terminal what so ever. Just to make sure everyone is on the same page: Windows Explorer is not the same thing as Internet Explorer, the Run Dialog, or the Task Manager.
– TekuConcept
Jul 19 '16 at 22:37
add a comment |
command 'pushd' will set currect folder so:
cmd /k "pushd D:Music"
Best/easiest answer I've found if you are opening a win10 administrative cmd (shortcut) prompt. Normally, admin prompt will force "start in" location to C:Windowssystem32.. no matter the 'start in' location you set.
– bshea
Aug 1 '18 at 18:05
"cd {path}" will also work.
– bshea
Aug 12 '18 at 16:26
Good tip. I use alternative 'C:WindowsSystem32cmd.exe cmd /K "cd /d D:Bla"'.
– gast128
Mar 4 at 13:48
add a comment |
In File Explorer, press and hold the Shift
key, then right click
or press and hold
on a folder
or drive
that you want to open the command prompt at that location for, and click/tap
on Open Command Prompt Here
option.
add a comment |
I see that there are multiple answers, some are quite complex :) , strange to see them. You just have to open any windows folder window, navigate to your desired folder and focus on address bar and enter "cmd" and press enter, you would be presented with new command prompt window directly with the folder path or location that we already navigated in windows folder window.
In case you want to see these steps with clear images you can check out
how to open command prompt in a specific folder directly
add a comment |
For windows :
Select the folder which you want to open in command prompt - After selection,
Keeping the 'Shift key' pressed. Right click there and choose option
"open command window here"
add a comment |
Make the shortcut to cmd.exe with params /S /K pushd "C:YOUR FOLDER"
add a comment |
If you are starting cmd from taskbar, this is what you need to do:
right click --> rightclick on Command Prompt --> Properties
Then in the properties window change the value of Start in:
This solution doesn't work for opening command prompt as administrator
"Start in:" location under my Windows 10 does not work if it's an administrative prompt. -> ALWAYS opens in system32 for me.
– bshea
Aug 1 '18 at 18:02
1
@bshea You are right, I tried and got the same results. So the solution can only be used for non-admin command prompts.
– Arman
Aug 2 '18 at 14:52
Yep.. was driving me nuts. use pushd per stackoverflow.com/a/45563746/503621 - is best/easiest can find for admin prompt location setting..
– bshea
Aug 3 '18 at 0:49
add a comment |
There is a simplier way I know. Find cmd.exe in start menu and send it to Desktop as shortcut. Then right-click it and choose properties. You will see "Start in" box under the "Target". Change that directory as whatever you'd like to set. Click OK and start cmd.exe which is in your Desktop. In my opinion, it's a very easy and certain solution :)
add a comment |
This program always opens cmd.exe in the current path of your Explorer:
https://github.com/jhasse/smart_cmd
You can also pin it to your taskbar and then use WindowsKey+[1-0] as a keyboard shortcut.
add a comment |
In Windows Explorer - shift + right mouse click above folder "Open command window here" option show up in the menu. Or in language of your Windows version.
add a comment |
I noticed that the Shift + Right click super-long context menu with the "Open command window here" option does not always display for whatever reason (I'm using Windows 10) so here's a method that will always work:
Hit Start, type "cmd", Right-click "Command Prompt" > Click "Open File Location".
Copy the "Command Prompt" shortcut to the directory where you wish you could just open cmd at directly.
Right click your new shortcut and click "Properties".
Edit the "Start in:" field to be either blank or %CD% and then click "OK".
Now when you click this shortcut it will open the command prompt pointing at the current directory that the shortcut is currently in, e.g. copy this shortcut to the desktop and run it to open cmd to the desktop directory.
add a comment |
With a Just-one-line file in batch:
START "Desire_Path" // Without quotes puth the location that you want to start in with cmd
Example (Open a text editor, place the code in there and save the file with a .bat extension):
START cd C:Users
Then just double click on it
****Note: if you want the explorer to complete the task don´t put the CD command.
*To do the opossite:
In order for you to open a particular directory with the explorer.exe aplication while using cmd you can use the command START and the absolute route of the folder that you want to display.
add a comment |
This method is using cmd.exe
and Send to
shortcut so cmd.exe
can open directory directly. This alternative method is in case of not having Open command window here
in right click menu.
- Open 'File Explorer' and enter
shell:sendto
in location bar to navigate toSend to
folder. - Copy a
Command Prompt
shortcut or create a new shortcut.lnk
file. - Edit the properties of the shortcut and edit the target to
%windir%system32cmd.exe /k cd /d
and press 'OK' to save the change. - Right click on a folder and expand
Send to
menu to use thecmd
shortcut.
This shortcut should open a cmd
window with directory selected by the right click.
This method should work under Window 7 and 10 at least. Name the shortcut as Command Prompt (cd)
to specify the task of the shortcut.
Possible error messages:
- Show 'The directory name is invalid.' if other than folder is
selected. - Show 'The system cannot find the drive specified.' if the folder is
not existed. - Show 'The filename, directory name, or volume label syntax is incorrect.' if multiple files are selected.
Little about shortcut: The directory would be automatically added to the end of the shortcut as a parameter when using under Send to
, so the shortcut does not need to type in the directory.
add a comment |
Right click the desktop and navigate to new and then from the sub-menu select "shortcut" → Browse to the Windows directory (or folder) and then to the system32
directory and click OK.
Add a and "cmd.exe" (without the quotes) to the command string. It should look like this:
C:WINDOWSSystem32cmd.exe.
Click Next and Finish. Right click the new CMD icon on your desktop and select properties, and Next to the Start. In options, delete the line and add the path to wherever the directory is that you want it to start in... For example, C:tempmp3
and click OK.
add a comment |
go to folder location in file explorer remove path and type cmd and press enter. and path will open in cmd.
thanks easiest way.
– vidy
Dec 6 '18 at 13:19
add a comment |
You can also do this:
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
[HKEY_CLASSES_ROOTDriveshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDriveshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
Update: for Win10 you need ShowBasedOnVelocityId
- see answer above.
add a comment |
1 2
next
protected by JJJ Jan 10 '17 at 21:43
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
36 Answers
36
active
oldest
votes
36 Answers
36
active
oldest
votes
active
oldest
votes
active
oldest
votes
1 2
next
You may want to look at this "PowerToy" from Microsoft:
Open Command Window Here
This PowerToy adds an "Open Command
Window Here" context menu option on
file system folders, giving you a
quick way to open a command window
(cmd.exe) pointing at the selected
folder.
EDIT : This software will not function on a version of Windows earlier or later than Windows XP.
23
I think this answer combined with Michael Ratanapintha's answer about using shift-right click in vista and 2008 answers this question fully.
– Joshua Hudson
Sep 14 '08 at 2:51
2
The link in the answer in no longer valid, but I believe it points to this download: go.microsoft.com/fwlink/?LinkId=211471
– nerdherd
Jul 25 '13 at 19:53
4
for WinXP and below.
– vinnief
Jan 21 '14 at 16:45
5
it is valid for windows xp only
– vogash
Nov 24 '15 at 8:56
1
how to uninstall it ?
– Blue Clouds
Jul 13 '17 at 13:13
add a comment |
You may want to look at this "PowerToy" from Microsoft:
Open Command Window Here
This PowerToy adds an "Open Command
Window Here" context menu option on
file system folders, giving you a
quick way to open a command window
(cmd.exe) pointing at the selected
folder.
EDIT : This software will not function on a version of Windows earlier or later than Windows XP.
23
I think this answer combined with Michael Ratanapintha's answer about using shift-right click in vista and 2008 answers this question fully.
– Joshua Hudson
Sep 14 '08 at 2:51
2
The link in the answer in no longer valid, but I believe it points to this download: go.microsoft.com/fwlink/?LinkId=211471
– nerdherd
Jul 25 '13 at 19:53
4
for WinXP and below.
– vinnief
Jan 21 '14 at 16:45
5
it is valid for windows xp only
– vogash
Nov 24 '15 at 8:56
1
how to uninstall it ?
– Blue Clouds
Jul 13 '17 at 13:13
add a comment |
You may want to look at this "PowerToy" from Microsoft:
Open Command Window Here
This PowerToy adds an "Open Command
Window Here" context menu option on
file system folders, giving you a
quick way to open a command window
(cmd.exe) pointing at the selected
folder.
EDIT : This software will not function on a version of Windows earlier or later than Windows XP.
You may want to look at this "PowerToy" from Microsoft:
Open Command Window Here
This PowerToy adds an "Open Command
Window Here" context menu option on
file system folders, giving you a
quick way to open a command window
(cmd.exe) pointing at the selected
folder.
EDIT : This software will not function on a version of Windows earlier or later than Windows XP.
edited Sep 12 '18 at 18:54
Anantha Raju C
1,10451827
1,10451827
answered Sep 13 '08 at 21:53
dF.dF.
52.8k25111131
52.8k25111131
23
I think this answer combined with Michael Ratanapintha's answer about using shift-right click in vista and 2008 answers this question fully.
– Joshua Hudson
Sep 14 '08 at 2:51
2
The link in the answer in no longer valid, but I believe it points to this download: go.microsoft.com/fwlink/?LinkId=211471
– nerdherd
Jul 25 '13 at 19:53
4
for WinXP and below.
– vinnief
Jan 21 '14 at 16:45
5
it is valid for windows xp only
– vogash
Nov 24 '15 at 8:56
1
how to uninstall it ?
– Blue Clouds
Jul 13 '17 at 13:13
add a comment |
23
I think this answer combined with Michael Ratanapintha's answer about using shift-right click in vista and 2008 answers this question fully.
– Joshua Hudson
Sep 14 '08 at 2:51
2
The link in the answer in no longer valid, but I believe it points to this download: go.microsoft.com/fwlink/?LinkId=211471
– nerdherd
Jul 25 '13 at 19:53
4
for WinXP and below.
– vinnief
Jan 21 '14 at 16:45
5
it is valid for windows xp only
– vogash
Nov 24 '15 at 8:56
1
how to uninstall it ?
– Blue Clouds
Jul 13 '17 at 13:13
23
23
I think this answer combined with Michael Ratanapintha's answer about using shift-right click in vista and 2008 answers this question fully.
– Joshua Hudson
Sep 14 '08 at 2:51
I think this answer combined with Michael Ratanapintha's answer about using shift-right click in vista and 2008 answers this question fully.
– Joshua Hudson
Sep 14 '08 at 2:51
2
2
The link in the answer in no longer valid, but I believe it points to this download: go.microsoft.com/fwlink/?LinkId=211471
– nerdherd
Jul 25 '13 at 19:53
The link in the answer in no longer valid, but I believe it points to this download: go.microsoft.com/fwlink/?LinkId=211471
– nerdherd
Jul 25 '13 at 19:53
4
4
for WinXP and below.
– vinnief
Jan 21 '14 at 16:45
for WinXP and below.
– vinnief
Jan 21 '14 at 16:45
5
5
it is valid for windows xp only
– vogash
Nov 24 '15 at 8:56
it is valid for windows xp only
– vogash
Nov 24 '15 at 8:56
1
1
how to uninstall it ?
– Blue Clouds
Jul 13 '17 at 13:13
how to uninstall it ?
– Blue Clouds
Jul 13 '17 at 13:13
add a comment |
This might be what you want:
cmd /K "cd C:Windows"
Note that in order to change drive letters, you need to use cd /d
. For example:
C:WindowsSystem32cmd.exe /K "cd /d H:Python"
(documentation)
7
Thanks ... Even shorter from GUI : WinLogo + R , type : cmd /c "start /max cmd /K "cd C:Windows""
– Yordan Georgiev
May 28 '09 at 6:07
1
On windows 7 you can save yourself a couple of keystrokes and use a lower case k and leave out the double quotes when your pathname has no space
– Phil C
Jun 7 '13 at 14:24
4
Want to start with a clean prompt without the initialcd
command shown? Append&cls
to the string like so:cmd.exe /K "cd /d H:Python&cls"
(documentation) And save this line into ajumpstart.bat
file for easy access by just double clicking it.
– Christiaan Westerbeek
Jun 6 '14 at 18:02
4
Why has this "answer" received so many up votes? Granted it answers the "letter" of the question, but not the "spirit"! This requires one to "...to navigate all the way to the directory I want." Ok, perhaps not "navigate", but rather "type", which is hardly a shortcut!
– raven
Sep 6 '14 at 19:23
13
The reason this answer has received so many upvotes is that it works for a shortcut. I keep a collection of shortcuts on my taskbar that each open a command prompt window in various project folders. In Windows 8, if you create a shortcut to start an elevated command prompt window, it ignores the "Start in" folder. The workaround is to place the following in the "Target" field (not the "Start in" field)%windir%system32cmd.exe /k cd "My Projects"
.
– rossmcm
Jan 29 '15 at 19:12
|
show 3 more comments
This might be what you want:
cmd /K "cd C:Windows"
Note that in order to change drive letters, you need to use cd /d
. For example:
C:WindowsSystem32cmd.exe /K "cd /d H:Python"
(documentation)
7
Thanks ... Even shorter from GUI : WinLogo + R , type : cmd /c "start /max cmd /K "cd C:Windows""
– Yordan Georgiev
May 28 '09 at 6:07
1
On windows 7 you can save yourself a couple of keystrokes and use a lower case k and leave out the double quotes when your pathname has no space
– Phil C
Jun 7 '13 at 14:24
4
Want to start with a clean prompt without the initialcd
command shown? Append&cls
to the string like so:cmd.exe /K "cd /d H:Python&cls"
(documentation) And save this line into ajumpstart.bat
file for easy access by just double clicking it.
– Christiaan Westerbeek
Jun 6 '14 at 18:02
4
Why has this "answer" received so many up votes? Granted it answers the "letter" of the question, but not the "spirit"! This requires one to "...to navigate all the way to the directory I want." Ok, perhaps not "navigate", but rather "type", which is hardly a shortcut!
– raven
Sep 6 '14 at 19:23
13
The reason this answer has received so many upvotes is that it works for a shortcut. I keep a collection of shortcuts on my taskbar that each open a command prompt window in various project folders. In Windows 8, if you create a shortcut to start an elevated command prompt window, it ignores the "Start in" folder. The workaround is to place the following in the "Target" field (not the "Start in" field)%windir%system32cmd.exe /k cd "My Projects"
.
– rossmcm
Jan 29 '15 at 19:12
|
show 3 more comments
This might be what you want:
cmd /K "cd C:Windows"
Note that in order to change drive letters, you need to use cd /d
. For example:
C:WindowsSystem32cmd.exe /K "cd /d H:Python"
(documentation)
This might be what you want:
cmd /K "cd C:Windows"
Note that in order to change drive letters, you need to use cd /d
. For example:
C:WindowsSystem32cmd.exe /K "cd /d H:Python"
(documentation)
edited Oct 5 '12 at 19:27
Supermitch
1,48941724
1,48941724
answered Sep 13 '08 at 21:53
Allain LalondeAllain Lalonde
50.7k64164227
50.7k64164227
7
Thanks ... Even shorter from GUI : WinLogo + R , type : cmd /c "start /max cmd /K "cd C:Windows""
– Yordan Georgiev
May 28 '09 at 6:07
1
On windows 7 you can save yourself a couple of keystrokes and use a lower case k and leave out the double quotes when your pathname has no space
– Phil C
Jun 7 '13 at 14:24
4
Want to start with a clean prompt without the initialcd
command shown? Append&cls
to the string like so:cmd.exe /K "cd /d H:Python&cls"
(documentation) And save this line into ajumpstart.bat
file for easy access by just double clicking it.
– Christiaan Westerbeek
Jun 6 '14 at 18:02
4
Why has this "answer" received so many up votes? Granted it answers the "letter" of the question, but not the "spirit"! This requires one to "...to navigate all the way to the directory I want." Ok, perhaps not "navigate", but rather "type", which is hardly a shortcut!
– raven
Sep 6 '14 at 19:23
13
The reason this answer has received so many upvotes is that it works for a shortcut. I keep a collection of shortcuts on my taskbar that each open a command prompt window in various project folders. In Windows 8, if you create a shortcut to start an elevated command prompt window, it ignores the "Start in" folder. The workaround is to place the following in the "Target" field (not the "Start in" field)%windir%system32cmd.exe /k cd "My Projects"
.
– rossmcm
Jan 29 '15 at 19:12
|
show 3 more comments
7
Thanks ... Even shorter from GUI : WinLogo + R , type : cmd /c "start /max cmd /K "cd C:Windows""
– Yordan Georgiev
May 28 '09 at 6:07
1
On windows 7 you can save yourself a couple of keystrokes and use a lower case k and leave out the double quotes when your pathname has no space
– Phil C
Jun 7 '13 at 14:24
4
Want to start with a clean prompt without the initialcd
command shown? Append&cls
to the string like so:cmd.exe /K "cd /d H:Python&cls"
(documentation) And save this line into ajumpstart.bat
file for easy access by just double clicking it.
– Christiaan Westerbeek
Jun 6 '14 at 18:02
4
Why has this "answer" received so many up votes? Granted it answers the "letter" of the question, but not the "spirit"! This requires one to "...to navigate all the way to the directory I want." Ok, perhaps not "navigate", but rather "type", which is hardly a shortcut!
– raven
Sep 6 '14 at 19:23
13
The reason this answer has received so many upvotes is that it works for a shortcut. I keep a collection of shortcuts on my taskbar that each open a command prompt window in various project folders. In Windows 8, if you create a shortcut to start an elevated command prompt window, it ignores the "Start in" folder. The workaround is to place the following in the "Target" field (not the "Start in" field)%windir%system32cmd.exe /k cd "My Projects"
.
– rossmcm
Jan 29 '15 at 19:12
7
7
Thanks ... Even shorter from GUI : WinLogo + R , type : cmd /c "start /max cmd /K "cd C:Windows""
– Yordan Georgiev
May 28 '09 at 6:07
Thanks ... Even shorter from GUI : WinLogo + R , type : cmd /c "start /max cmd /K "cd C:Windows""
– Yordan Georgiev
May 28 '09 at 6:07
1
1
On windows 7 you can save yourself a couple of keystrokes and use a lower case k and leave out the double quotes when your pathname has no space
– Phil C
Jun 7 '13 at 14:24
On windows 7 you can save yourself a couple of keystrokes and use a lower case k and leave out the double quotes when your pathname has no space
– Phil C
Jun 7 '13 at 14:24
4
4
Want to start with a clean prompt without the initial
cd
command shown? Append &cls
to the string like so: cmd.exe /K "cd /d H:Python&cls"
(documentation) And save this line into a jumpstart.bat
file for easy access by just double clicking it.– Christiaan Westerbeek
Jun 6 '14 at 18:02
Want to start with a clean prompt without the initial
cd
command shown? Append &cls
to the string like so: cmd.exe /K "cd /d H:Python&cls"
(documentation) And save this line into a jumpstart.bat
file for easy access by just double clicking it.– Christiaan Westerbeek
Jun 6 '14 at 18:02
4
4
Why has this "answer" received so many up votes? Granted it answers the "letter" of the question, but not the "spirit"! This requires one to "...to navigate all the way to the directory I want." Ok, perhaps not "navigate", but rather "type", which is hardly a shortcut!
– raven
Sep 6 '14 at 19:23
Why has this "answer" received so many up votes? Granted it answers the "letter" of the question, but not the "spirit"! This requires one to "...to navigate all the way to the directory I want." Ok, perhaps not "navigate", but rather "type", which is hardly a shortcut!
– raven
Sep 6 '14 at 19:23
13
13
The reason this answer has received so many upvotes is that it works for a shortcut. I keep a collection of shortcuts on my taskbar that each open a command prompt window in various project folders. In Windows 8, if you create a shortcut to start an elevated command prompt window, it ignores the "Start in" folder. The workaround is to place the following in the "Target" field (not the "Start in" field)
%windir%system32cmd.exe /k cd "My Projects"
.– rossmcm
Jan 29 '15 at 19:12
The reason this answer has received so many upvotes is that it works for a shortcut. I keep a collection of shortcuts on my taskbar that each open a command prompt window in various project folders. In Windows 8, if you create a shortcut to start an elevated command prompt window, it ignores the "Start in" folder. The workaround is to place the following in the "Target" field (not the "Start in" field)
%windir%system32cmd.exe /k cd "My Projects"
.– rossmcm
Jan 29 '15 at 19:12
|
show 3 more comments
If you have Windows Vista or later, right-click on the folder icon in Explorer while holding the Shift key, and then click on the "Open command window here" or "Open PowerShell window here" context menu option.
If you're already in the folder you want, you can do one of the following:
- [only Win8+] Click the Explorer Ribbon's File button, then click on "Open command window here" or "Open PowerShell window here".
Shift-right-click on the background of the Explorer window, then click on "Open command window here" or "Open PowerShell window here". (recommended by Kate in the comments)- [only Vista or Win7] Hold down Shift when opening the Explorer File menu, then click on "Open command window here". If you can't see the menu bar, open the File menu by pressing Alt-Shift-F - Alt-F to open the File menu, plus Shift.
For Windows XP, use the PowerToy mentioned by dF to get the same function.
2
I'm running Server 2008 here and I don't get an "Open Command Window Here" context menu option when I Shift+right-click on a directory... ...doesn't work on Vista x64 either.
– raven
Oct 18 '08 at 21:20
Works fine in Vista x64 Home Premium, and I assume other versions as well. It's about midway down the list. Note that a file cannot be selected when you right click.
– Dan Homerick
Jul 31 '09 at 4:45
6
These work in Windows 7 and Server 2008 R2 also. Make sure you right click in the background and not on a file.
– Kate Gregory
Nov 2 '11 at 13:34
3
Works awesome in Windows 7, for me this is the best, shortest and most preferred way. Thanks @Michael
– Anmol Saraf
Dec 17 '12 at 8:04
1
Only shows me Windows Shell in Windows 10... suggestions?
– jaminroe
Oct 31 '17 at 4:34
|
show 4 more comments
If you have Windows Vista or later, right-click on the folder icon in Explorer while holding the Shift key, and then click on the "Open command window here" or "Open PowerShell window here" context menu option.
If you're already in the folder you want, you can do one of the following:
- [only Win8+] Click the Explorer Ribbon's File button, then click on "Open command window here" or "Open PowerShell window here".
Shift-right-click on the background of the Explorer window, then click on "Open command window here" or "Open PowerShell window here". (recommended by Kate in the comments)- [only Vista or Win7] Hold down Shift when opening the Explorer File menu, then click on "Open command window here". If you can't see the menu bar, open the File menu by pressing Alt-Shift-F - Alt-F to open the File menu, plus Shift.
For Windows XP, use the PowerToy mentioned by dF to get the same function.
2
I'm running Server 2008 here and I don't get an "Open Command Window Here" context menu option when I Shift+right-click on a directory... ...doesn't work on Vista x64 either.
– raven
Oct 18 '08 at 21:20
Works fine in Vista x64 Home Premium, and I assume other versions as well. It's about midway down the list. Note that a file cannot be selected when you right click.
– Dan Homerick
Jul 31 '09 at 4:45
6
These work in Windows 7 and Server 2008 R2 also. Make sure you right click in the background and not on a file.
– Kate Gregory
Nov 2 '11 at 13:34
3
Works awesome in Windows 7, for me this is the best, shortest and most preferred way. Thanks @Michael
– Anmol Saraf
Dec 17 '12 at 8:04
1
Only shows me Windows Shell in Windows 10... suggestions?
– jaminroe
Oct 31 '17 at 4:34
|
show 4 more comments
If you have Windows Vista or later, right-click on the folder icon in Explorer while holding the Shift key, and then click on the "Open command window here" or "Open PowerShell window here" context menu option.
If you're already in the folder you want, you can do one of the following:
- [only Win8+] Click the Explorer Ribbon's File button, then click on "Open command window here" or "Open PowerShell window here".
Shift-right-click on the background of the Explorer window, then click on "Open command window here" or "Open PowerShell window here". (recommended by Kate in the comments)- [only Vista or Win7] Hold down Shift when opening the Explorer File menu, then click on "Open command window here". If you can't see the menu bar, open the File menu by pressing Alt-Shift-F - Alt-F to open the File menu, plus Shift.
For Windows XP, use the PowerToy mentioned by dF to get the same function.
If you have Windows Vista or later, right-click on the folder icon in Explorer while holding the Shift key, and then click on the "Open command window here" or "Open PowerShell window here" context menu option.
If you're already in the folder you want, you can do one of the following:
- [only Win8+] Click the Explorer Ribbon's File button, then click on "Open command window here" or "Open PowerShell window here".
Shift-right-click on the background of the Explorer window, then click on "Open command window here" or "Open PowerShell window here". (recommended by Kate in the comments)- [only Vista or Win7] Hold down Shift when opening the Explorer File menu, then click on "Open command window here". If you can't see the menu bar, open the File menu by pressing Alt-Shift-F - Alt-F to open the File menu, plus Shift.
For Windows XP, use the PowerToy mentioned by dF to get the same function.
edited Sep 18 '18 at 17:15
answered Sep 13 '08 at 21:58
Michael RatanapinthaMichael Ratanapintha
31.6k42335
31.6k42335
2
I'm running Server 2008 here and I don't get an "Open Command Window Here" context menu option when I Shift+right-click on a directory... ...doesn't work on Vista x64 either.
– raven
Oct 18 '08 at 21:20
Works fine in Vista x64 Home Premium, and I assume other versions as well. It's about midway down the list. Note that a file cannot be selected when you right click.
– Dan Homerick
Jul 31 '09 at 4:45
6
These work in Windows 7 and Server 2008 R2 also. Make sure you right click in the background and not on a file.
– Kate Gregory
Nov 2 '11 at 13:34
3
Works awesome in Windows 7, for me this is the best, shortest and most preferred way. Thanks @Michael
– Anmol Saraf
Dec 17 '12 at 8:04
1
Only shows me Windows Shell in Windows 10... suggestions?
– jaminroe
Oct 31 '17 at 4:34
|
show 4 more comments
2
I'm running Server 2008 here and I don't get an "Open Command Window Here" context menu option when I Shift+right-click on a directory... ...doesn't work on Vista x64 either.
– raven
Oct 18 '08 at 21:20
Works fine in Vista x64 Home Premium, and I assume other versions as well. It's about midway down the list. Note that a file cannot be selected when you right click.
– Dan Homerick
Jul 31 '09 at 4:45
6
These work in Windows 7 and Server 2008 R2 also. Make sure you right click in the background and not on a file.
– Kate Gregory
Nov 2 '11 at 13:34
3
Works awesome in Windows 7, for me this is the best, shortest and most preferred way. Thanks @Michael
– Anmol Saraf
Dec 17 '12 at 8:04
1
Only shows me Windows Shell in Windows 10... suggestions?
– jaminroe
Oct 31 '17 at 4:34
2
2
I'm running Server 2008 here and I don't get an "Open Command Window Here" context menu option when I Shift+right-click on a directory... ...doesn't work on Vista x64 either.
– raven
Oct 18 '08 at 21:20
I'm running Server 2008 here and I don't get an "Open Command Window Here" context menu option when I Shift+right-click on a directory... ...doesn't work on Vista x64 either.
– raven
Oct 18 '08 at 21:20
Works fine in Vista x64 Home Premium, and I assume other versions as well. It's about midway down the list. Note that a file cannot be selected when you right click.
– Dan Homerick
Jul 31 '09 at 4:45
Works fine in Vista x64 Home Premium, and I assume other versions as well. It's about midway down the list. Note that a file cannot be selected when you right click.
– Dan Homerick
Jul 31 '09 at 4:45
6
6
These work in Windows 7 and Server 2008 R2 also. Make sure you right click in the background and not on a file.
– Kate Gregory
Nov 2 '11 at 13:34
These work in Windows 7 and Server 2008 R2 also. Make sure you right click in the background and not on a file.
– Kate Gregory
Nov 2 '11 at 13:34
3
3
Works awesome in Windows 7, for me this is the best, shortest and most preferred way. Thanks @Michael
– Anmol Saraf
Dec 17 '12 at 8:04
Works awesome in Windows 7, for me this is the best, shortest and most preferred way. Thanks @Michael
– Anmol Saraf
Dec 17 '12 at 8:04
1
1
Only shows me Windows Shell in Windows 10... suggestions?
– jaminroe
Oct 31 '17 at 4:34
Only shows me Windows Shell in Windows 10... suggestions?
– jaminroe
Oct 31 '17 at 4:34
|
show 4 more comments
Assuming that in File Explorer you have opened the target directory/folder, do this:
Click on address bar, alternatively press Alt+D
Now when address bar is highlighted, type cmd in the bar.
Press Enter key
You will notice that command prompt from that folder
1
This is a cool trick. But do you know of a way to do this with an elevated command prompt?
– smead
Mar 24 '16 at 1:12
5
@smead Click on the folder, click on the File menu of Explorer, then click on then arrow next to 'Open command prompt' . Then you will see an option to open cmd as Admin
– san1deep2set3hi
Mar 25 '16 at 18:11
@san1deep2set3hi I don't get an arrow next to Open command prompt. I'm in Win7 Pro, maybe that was added in a later OS?
– smead
Mar 26 '16 at 6:59
2
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 2:59
1
wow, this is a huge time saver. Thanks
– vnkid
Sep 6 '18 at 12:45
|
show 11 more comments
Assuming that in File Explorer you have opened the target directory/folder, do this:
Click on address bar, alternatively press Alt+D
Now when address bar is highlighted, type cmd in the bar.
Press Enter key
You will notice that command prompt from that folder
1
This is a cool trick. But do you know of a way to do this with an elevated command prompt?
– smead
Mar 24 '16 at 1:12
5
@smead Click on the folder, click on the File menu of Explorer, then click on then arrow next to 'Open command prompt' . Then you will see an option to open cmd as Admin
– san1deep2set3hi
Mar 25 '16 at 18:11
@san1deep2set3hi I don't get an arrow next to Open command prompt. I'm in Win7 Pro, maybe that was added in a later OS?
– smead
Mar 26 '16 at 6:59
2
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 2:59
1
wow, this is a huge time saver. Thanks
– vnkid
Sep 6 '18 at 12:45
|
show 11 more comments
Assuming that in File Explorer you have opened the target directory/folder, do this:
Click on address bar, alternatively press Alt+D
Now when address bar is highlighted, type cmd in the bar.
Press Enter key
You will notice that command prompt from that folder
Assuming that in File Explorer you have opened the target directory/folder, do this:
Click on address bar, alternatively press Alt+D
Now when address bar is highlighted, type cmd in the bar.
Press Enter key
You will notice that command prompt from that folder
edited May 8 '15 at 13:06
ROMANIA_engineer
34.4k19156146
34.4k19156146
answered Apr 27 '14 at 7:40
san1deep2set3hisan1deep2set3hi
3,06311223
3,06311223
1
This is a cool trick. But do you know of a way to do this with an elevated command prompt?
– smead
Mar 24 '16 at 1:12
5
@smead Click on the folder, click on the File menu of Explorer, then click on then arrow next to 'Open command prompt' . Then you will see an option to open cmd as Admin
– san1deep2set3hi
Mar 25 '16 at 18:11
@san1deep2set3hi I don't get an arrow next to Open command prompt. I'm in Win7 Pro, maybe that was added in a later OS?
– smead
Mar 26 '16 at 6:59
2
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 2:59
1
wow, this is a huge time saver. Thanks
– vnkid
Sep 6 '18 at 12:45
|
show 11 more comments
1
This is a cool trick. But do you know of a way to do this with an elevated command prompt?
– smead
Mar 24 '16 at 1:12
5
@smead Click on the folder, click on the File menu of Explorer, then click on then arrow next to 'Open command prompt' . Then you will see an option to open cmd as Admin
– san1deep2set3hi
Mar 25 '16 at 18:11
@san1deep2set3hi I don't get an arrow next to Open command prompt. I'm in Win7 Pro, maybe that was added in a later OS?
– smead
Mar 26 '16 at 6:59
2
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 2:59
1
wow, this is a huge time saver. Thanks
– vnkid
Sep 6 '18 at 12:45
1
1
This is a cool trick. But do you know of a way to do this with an elevated command prompt?
– smead
Mar 24 '16 at 1:12
This is a cool trick. But do you know of a way to do this with an elevated command prompt?
– smead
Mar 24 '16 at 1:12
5
5
@smead Click on the folder, click on the File menu of Explorer, then click on then arrow next to 'Open command prompt' . Then you will see an option to open cmd as Admin
– san1deep2set3hi
Mar 25 '16 at 18:11
@smead Click on the folder, click on the File menu of Explorer, then click on then arrow next to 'Open command prompt' . Then you will see an option to open cmd as Admin
– san1deep2set3hi
Mar 25 '16 at 18:11
@san1deep2set3hi I don't get an arrow next to Open command prompt. I'm in Win7 Pro, maybe that was added in a later OS?
– smead
Mar 26 '16 at 6:59
@san1deep2set3hi I don't get an arrow next to Open command prompt. I'm in Win7 Pro, maybe that was added in a later OS?
– smead
Mar 26 '16 at 6:59
2
2
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 2:59
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 2:59
1
1
wow, this is a huge time saver. Thanks
– vnkid
Sep 6 '18 at 12:45
wow, this is a huge time saver. Thanks
– vnkid
Sep 6 '18 at 12:45
|
show 11 more comments
From Windows 7 up to some versions of Windows 10, it is very simple to open a command prompt anywhere you wish, without navigation using command "cd".
Try the following one.
Click the mouse's right button by holding Shift key .
It will produce an option like this. Then simply select the "Open command window here " option.
The latest versions of Windows 10 have replaced this feature with "Open Powershell here".
Strangely I don't have this item
– Manuel Di Iorio
Oct 30 '15 at 19:24
Me too, so I'm going to take a guess this is only available in Enterprise versions of Windows 7+ (Not home)
– MackieeE
Feb 9 '17 at 9:35
add a comment |
From Windows 7 up to some versions of Windows 10, it is very simple to open a command prompt anywhere you wish, without navigation using command "cd".
Try the following one.
Click the mouse's right button by holding Shift key .
It will produce an option like this. Then simply select the "Open command window here " option.
The latest versions of Windows 10 have replaced this feature with "Open Powershell here".
Strangely I don't have this item
– Manuel Di Iorio
Oct 30 '15 at 19:24
Me too, so I'm going to take a guess this is only available in Enterprise versions of Windows 7+ (Not home)
– MackieeE
Feb 9 '17 at 9:35
add a comment |
From Windows 7 up to some versions of Windows 10, it is very simple to open a command prompt anywhere you wish, without navigation using command "cd".
Try the following one.
Click the mouse's right button by holding Shift key .
It will produce an option like this. Then simply select the "Open command window here " option.
The latest versions of Windows 10 have replaced this feature with "Open Powershell here".
From Windows 7 up to some versions of Windows 10, it is very simple to open a command prompt anywhere you wish, without navigation using command "cd".
Try the following one.
Click the mouse's right button by holding Shift key .
It will produce an option like this. Then simply select the "Open command window here " option.
The latest versions of Windows 10 have replaced this feature with "Open Powershell here".
edited Jun 26 '18 at 2:24
Panki
1157
1157
answered Mar 6 '14 at 9:57
Don ChakkappanDon Chakkappan
5,79553249
5,79553249
Strangely I don't have this item
– Manuel Di Iorio
Oct 30 '15 at 19:24
Me too, so I'm going to take a guess this is only available in Enterprise versions of Windows 7+ (Not home)
– MackieeE
Feb 9 '17 at 9:35
add a comment |
Strangely I don't have this item
– Manuel Di Iorio
Oct 30 '15 at 19:24
Me too, so I'm going to take a guess this is only available in Enterprise versions of Windows 7+ (Not home)
– MackieeE
Feb 9 '17 at 9:35
Strangely I don't have this item
– Manuel Di Iorio
Oct 30 '15 at 19:24
Strangely I don't have this item
– Manuel Di Iorio
Oct 30 '15 at 19:24
Me too, so I'm going to take a guess this is only available in Enterprise versions of Windows 7+ (Not home)
– MackieeE
Feb 9 '17 at 9:35
Me too, so I'm going to take a guess this is only available in Enterprise versions of Windows 7+ (Not home)
– MackieeE
Feb 9 '17 at 9:35
add a comment |
Use the /K switch. For example
cmd /K "cd /d c:WINDOWS"
Will create a cmd window at the C:Windows directory
This worked perfectly when I tried to create a Batch file & set a default working directory for it. Thanks a ton for sharing!
– Devner
May 20 '16 at 13:11
add a comment |
Use the /K switch. For example
cmd /K "cd /d c:WINDOWS"
Will create a cmd window at the C:Windows directory
This worked perfectly when I tried to create a Batch file & set a default working directory for it. Thanks a ton for sharing!
– Devner
May 20 '16 at 13:11
add a comment |
Use the /K switch. For example
cmd /K "cd /d c:WINDOWS"
Will create a cmd window at the C:Windows directory
Use the /K switch. For example
cmd /K "cd /d c:WINDOWS"
Will create a cmd window at the C:Windows directory
answered Sep 13 '08 at 21:55
Jason Punyon♦Jason Punyon
32.2k989114
32.2k989114
This worked perfectly when I tried to create a Batch file & set a default working directory for it. Thanks a ton for sharing!
– Devner
May 20 '16 at 13:11
add a comment |
This worked perfectly when I tried to create a Batch file & set a default working directory for it. Thanks a ton for sharing!
– Devner
May 20 '16 at 13:11
This worked perfectly when I tried to create a Batch file & set a default working directory for it. Thanks a ton for sharing!
– Devner
May 20 '16 at 13:11
This worked perfectly when I tried to create a Batch file & set a default working directory for it. Thanks a ton for sharing!
– Devner
May 20 '16 at 13:11
add a comment |
On Windows Vista, Windows 7 and Windows 10 simply hold down the Shift key and right-click on a folder.
The context menu will contain an entry titled: "Open command window here"
Update: Type "cmd" in the address bar of Explorer and press enter
Update 2: In windows 10, go to file menu and select "Open Windows PowerShell". There is an option for running as administrator.
I had this working on Windows 7 but in on my new laptop with Windows 10 it is not present in the popup menu.
– Jason S
Oct 29 '18 at 16:44
The "cmd" trick works, though -- thanks!
– Jason S
Oct 29 '18 at 16:44
add a comment |
On Windows Vista, Windows 7 and Windows 10 simply hold down the Shift key and right-click on a folder.
The context menu will contain an entry titled: "Open command window here"
Update: Type "cmd" in the address bar of Explorer and press enter
Update 2: In windows 10, go to file menu and select "Open Windows PowerShell". There is an option for running as administrator.
I had this working on Windows 7 but in on my new laptop with Windows 10 it is not present in the popup menu.
– Jason S
Oct 29 '18 at 16:44
The "cmd" trick works, though -- thanks!
– Jason S
Oct 29 '18 at 16:44
add a comment |
On Windows Vista, Windows 7 and Windows 10 simply hold down the Shift key and right-click on a folder.
The context menu will contain an entry titled: "Open command window here"
Update: Type "cmd" in the address bar of Explorer and press enter
Update 2: In windows 10, go to file menu and select "Open Windows PowerShell". There is an option for running as administrator.
On Windows Vista, Windows 7 and Windows 10 simply hold down the Shift key and right-click on a folder.
The context menu will contain an entry titled: "Open command window here"
Update: Type "cmd" in the address bar of Explorer and press enter
Update 2: In windows 10, go to file menu and select "Open Windows PowerShell". There is an option for running as administrator.
edited Jan 10 at 7:19
answered Apr 13 '12 at 4:26
desmatidesmati
73611132
73611132
I had this working on Windows 7 but in on my new laptop with Windows 10 it is not present in the popup menu.
– Jason S
Oct 29 '18 at 16:44
The "cmd" trick works, though -- thanks!
– Jason S
Oct 29 '18 at 16:44
add a comment |
I had this working on Windows 7 but in on my new laptop with Windows 10 it is not present in the popup menu.
– Jason S
Oct 29 '18 at 16:44
The "cmd" trick works, though -- thanks!
– Jason S
Oct 29 '18 at 16:44
I had this working on Windows 7 but in on my new laptop with Windows 10 it is not present in the popup menu.
– Jason S
Oct 29 '18 at 16:44
I had this working on Windows 7 but in on my new laptop with Windows 10 it is not present in the popup menu.
– Jason S
Oct 29 '18 at 16:44
The "cmd" trick works, though -- thanks!
– Jason S
Oct 29 '18 at 16:44
The "cmd" trick works, though -- thanks!
– Jason S
Oct 29 '18 at 16:44
add a comment |
Just write cmd
in the address bar, it will open in the current folder.
Niiiiiiiiiiice!
– Gras Double
Aug 25 '18 at 17:30
add a comment |
Just write cmd
in the address bar, it will open in the current folder.
Niiiiiiiiiiice!
– Gras Double
Aug 25 '18 at 17:30
add a comment |
Just write cmd
in the address bar, it will open in the current folder.
Just write cmd
in the address bar, it will open in the current folder.
answered Jan 10 '17 at 21:17
GuillermoGuillermo
26124
26124
Niiiiiiiiiiice!
– Gras Double
Aug 25 '18 at 17:30
add a comment |
Niiiiiiiiiiice!
– Gras Double
Aug 25 '18 at 17:30
Niiiiiiiiiiice!
– Gras Double
Aug 25 '18 at 17:30
Niiiiiiiiiiice!
– Gras Double
Aug 25 '18 at 17:30
add a comment |
Create a shortcut and edit the "Start In" property of the shortcut to the directory you want the cmd.exe to start in.
add a comment |
Create a shortcut and edit the "Start In" property of the shortcut to the directory you want the cmd.exe to start in.
add a comment |
Create a shortcut and edit the "Start In" property of the shortcut to the directory you want the cmd.exe to start in.
Create a shortcut and edit the "Start In" property of the shortcut to the directory you want the cmd.exe to start in.
answered Sep 13 '08 at 21:56
simonsimon
3,27672532
3,27672532
add a comment |
add a comment |
Also, here is a shortcut to open a console in any windows folder:
- Open any folder on windows explorer.
- Press
Alt + D
to focus the adress bar - type
cmd
and press enter
Very practical shortcut.
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
This is the best option.
– Nirmal Mangal
Sep 24 '18 at 18:59
add a comment |
Also, here is a shortcut to open a console in any windows folder:
- Open any folder on windows explorer.
- Press
Alt + D
to focus the adress bar - type
cmd
and press enter
Very practical shortcut.
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
This is the best option.
– Nirmal Mangal
Sep 24 '18 at 18:59
add a comment |
Also, here is a shortcut to open a console in any windows folder:
- Open any folder on windows explorer.
- Press
Alt + D
to focus the adress bar - type
cmd
and press enter
Very practical shortcut.
Also, here is a shortcut to open a console in any windows folder:
- Open any folder on windows explorer.
- Press
Alt + D
to focus the adress bar - type
cmd
and press enter
Very practical shortcut.
edited Mar 17 '15 at 1:12
answered Mar 1 '15 at 15:44
TiagoLrTiagoLr
1,5491313
1,5491313
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
This is the best option.
– Nirmal Mangal
Sep 24 '18 at 18:59
add a comment |
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
This is the best option.
– Nirmal Mangal
Sep 24 '18 at 18:59
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
This is the best option.
– Nirmal Mangal
Sep 24 '18 at 18:59
This is the best option.
– Nirmal Mangal
Sep 24 '18 at 18:59
add a comment |
In Windows 8, you can click the address bar and type "cmd" (without quotes) and hit enter. This will open the cmd window in the current path.
4
Unless you have a batch/command script called cmd.bat or cmd.cmd, in which case it will execute that file. LOL
– kakridge
Jun 23 '14 at 13:26
It works in windows 7 too.
– qqqqq
Feb 23 '16 at 23:26
add a comment |
In Windows 8, you can click the address bar and type "cmd" (without quotes) and hit enter. This will open the cmd window in the current path.
4
Unless you have a batch/command script called cmd.bat or cmd.cmd, in which case it will execute that file. LOL
– kakridge
Jun 23 '14 at 13:26
It works in windows 7 too.
– qqqqq
Feb 23 '16 at 23:26
add a comment |
In Windows 8, you can click the address bar and type "cmd" (without quotes) and hit enter. This will open the cmd window in the current path.
In Windows 8, you can click the address bar and type "cmd" (without quotes) and hit enter. This will open the cmd window in the current path.
answered Mar 12 '14 at 4:20
Abhishek ShresthaAbhishek Shrestha
10113
10113
4
Unless you have a batch/command script called cmd.bat or cmd.cmd, in which case it will execute that file. LOL
– kakridge
Jun 23 '14 at 13:26
It works in windows 7 too.
– qqqqq
Feb 23 '16 at 23:26
add a comment |
4
Unless you have a batch/command script called cmd.bat or cmd.cmd, in which case it will execute that file. LOL
– kakridge
Jun 23 '14 at 13:26
It works in windows 7 too.
– qqqqq
Feb 23 '16 at 23:26
4
4
Unless you have a batch/command script called cmd.bat or cmd.cmd, in which case it will execute that file. LOL
– kakridge
Jun 23 '14 at 13:26
Unless you have a batch/command script called cmd.bat or cmd.cmd, in which case it will execute that file. LOL
– kakridge
Jun 23 '14 at 13:26
It works in windows 7 too.
– qqqqq
Feb 23 '16 at 23:26
It works in windows 7 too.
– qqqqq
Feb 23 '16 at 23:26
add a comment |
I just saw this question and cannot help to post my AutoHotkey script for cmd on Windows XP. You can spot the hot keys in the script. The nice thing is when your current windows is Explorer, the cmd will open in the path showing in the address bar.
I keep this script in a folder where I store all green tools (including AutoHotkey). For a new machine, I just copy the folder, double click the script to associate .ahk with AutoHotkey and create a shortcut in my startup folder. It is faster than installing PowerToys.
; Get working folder
GetWorkingFolder() {
if WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass") {
ControlGetText, path, Edit1
return %path%
} else if WinActive("FreeCommander") {
Send, {CTRLDOWN}{ALTDOWN}{INS}{ALTUP}{CTRLUP}
Sleep, 100
return clipboard
} else {
return "C:"
}
}
#IfWinActive,
#c::
path := GetWorkingFolder()
Run, %ComSpec%, %path%
return
; PowerShell
#+C::
path := GetWorkingFolder()
Run, %SystemRoot%system32WindowsPowerShellv1.0powershell.exe, %path%
return
#^c::
Run, %ComSpec%, %temp%
return
#!c::
path := GetWorkingFolder()
Run, %comspec% /k "%VS90COMNTOOLS%vsvars32.bat", %path%
return
; irb
#!b::
path := GetWorkingFolder()
Run, c:cygwinbinruby /usr/bin/irb, %path%
return
; Bash
#b::
path := GetWorkingFolder()
Run, bash --login, %path%
return
; Paste in console
+INS::
if WinActive("ahk_class ConsoleWindowClass") {
WinGetPos, x, y, w, h, A
MouseGetPos, mx, my
;MsgBox x=%x% y=%y% w=%w% h=%h% mx=%mx% my=%my%
if (mx < 10)
mx = 10
else if (mx > w - 30)
mx := w - 30
if (my < 40)
my = 40
else if (my > h)
my := h - 10
MouseClick, right, mx, my
}
return
For anyone who is interested, you can find this script at rwin on github
2
+1 for solving the exact problem I was trying to solve, a year later. Thanks for the script.
– mike9322
Mar 3 '12 at 16:10
It's now part of my windows tool set, you can find it here: code.google.com/p/rwintools. The script has also been updated to support windows 7. I am planning to add more document recently.
– Codism
Mar 4 '12 at 21:37
Wow. I only just discovered AutoHotkey and was just looking for this /exact/ thing. Thanks so much!
– iono
Oct 31 '12 at 15:50
add a comment |
I just saw this question and cannot help to post my AutoHotkey script for cmd on Windows XP. You can spot the hot keys in the script. The nice thing is when your current windows is Explorer, the cmd will open in the path showing in the address bar.
I keep this script in a folder where I store all green tools (including AutoHotkey). For a new machine, I just copy the folder, double click the script to associate .ahk with AutoHotkey and create a shortcut in my startup folder. It is faster than installing PowerToys.
; Get working folder
GetWorkingFolder() {
if WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass") {
ControlGetText, path, Edit1
return %path%
} else if WinActive("FreeCommander") {
Send, {CTRLDOWN}{ALTDOWN}{INS}{ALTUP}{CTRLUP}
Sleep, 100
return clipboard
} else {
return "C:"
}
}
#IfWinActive,
#c::
path := GetWorkingFolder()
Run, %ComSpec%, %path%
return
; PowerShell
#+C::
path := GetWorkingFolder()
Run, %SystemRoot%system32WindowsPowerShellv1.0powershell.exe, %path%
return
#^c::
Run, %ComSpec%, %temp%
return
#!c::
path := GetWorkingFolder()
Run, %comspec% /k "%VS90COMNTOOLS%vsvars32.bat", %path%
return
; irb
#!b::
path := GetWorkingFolder()
Run, c:cygwinbinruby /usr/bin/irb, %path%
return
; Bash
#b::
path := GetWorkingFolder()
Run, bash --login, %path%
return
; Paste in console
+INS::
if WinActive("ahk_class ConsoleWindowClass") {
WinGetPos, x, y, w, h, A
MouseGetPos, mx, my
;MsgBox x=%x% y=%y% w=%w% h=%h% mx=%mx% my=%my%
if (mx < 10)
mx = 10
else if (mx > w - 30)
mx := w - 30
if (my < 40)
my = 40
else if (my > h)
my := h - 10
MouseClick, right, mx, my
}
return
For anyone who is interested, you can find this script at rwin on github
2
+1 for solving the exact problem I was trying to solve, a year later. Thanks for the script.
– mike9322
Mar 3 '12 at 16:10
It's now part of my windows tool set, you can find it here: code.google.com/p/rwintools. The script has also been updated to support windows 7. I am planning to add more document recently.
– Codism
Mar 4 '12 at 21:37
Wow. I only just discovered AutoHotkey and was just looking for this /exact/ thing. Thanks so much!
– iono
Oct 31 '12 at 15:50
add a comment |
I just saw this question and cannot help to post my AutoHotkey script for cmd on Windows XP. You can spot the hot keys in the script. The nice thing is when your current windows is Explorer, the cmd will open in the path showing in the address bar.
I keep this script in a folder where I store all green tools (including AutoHotkey). For a new machine, I just copy the folder, double click the script to associate .ahk with AutoHotkey and create a shortcut in my startup folder. It is faster than installing PowerToys.
; Get working folder
GetWorkingFolder() {
if WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass") {
ControlGetText, path, Edit1
return %path%
} else if WinActive("FreeCommander") {
Send, {CTRLDOWN}{ALTDOWN}{INS}{ALTUP}{CTRLUP}
Sleep, 100
return clipboard
} else {
return "C:"
}
}
#IfWinActive,
#c::
path := GetWorkingFolder()
Run, %ComSpec%, %path%
return
; PowerShell
#+C::
path := GetWorkingFolder()
Run, %SystemRoot%system32WindowsPowerShellv1.0powershell.exe, %path%
return
#^c::
Run, %ComSpec%, %temp%
return
#!c::
path := GetWorkingFolder()
Run, %comspec% /k "%VS90COMNTOOLS%vsvars32.bat", %path%
return
; irb
#!b::
path := GetWorkingFolder()
Run, c:cygwinbinruby /usr/bin/irb, %path%
return
; Bash
#b::
path := GetWorkingFolder()
Run, bash --login, %path%
return
; Paste in console
+INS::
if WinActive("ahk_class ConsoleWindowClass") {
WinGetPos, x, y, w, h, A
MouseGetPos, mx, my
;MsgBox x=%x% y=%y% w=%w% h=%h% mx=%mx% my=%my%
if (mx < 10)
mx = 10
else if (mx > w - 30)
mx := w - 30
if (my < 40)
my = 40
else if (my > h)
my := h - 10
MouseClick, right, mx, my
}
return
For anyone who is interested, you can find this script at rwin on github
I just saw this question and cannot help to post my AutoHotkey script for cmd on Windows XP. You can spot the hot keys in the script. The nice thing is when your current windows is Explorer, the cmd will open in the path showing in the address bar.
I keep this script in a folder where I store all green tools (including AutoHotkey). For a new machine, I just copy the folder, double click the script to associate .ahk with AutoHotkey and create a shortcut in my startup folder. It is faster than installing PowerToys.
; Get working folder
GetWorkingFolder() {
if WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass") {
ControlGetText, path, Edit1
return %path%
} else if WinActive("FreeCommander") {
Send, {CTRLDOWN}{ALTDOWN}{INS}{ALTUP}{CTRLUP}
Sleep, 100
return clipboard
} else {
return "C:"
}
}
#IfWinActive,
#c::
path := GetWorkingFolder()
Run, %ComSpec%, %path%
return
; PowerShell
#+C::
path := GetWorkingFolder()
Run, %SystemRoot%system32WindowsPowerShellv1.0powershell.exe, %path%
return
#^c::
Run, %ComSpec%, %temp%
return
#!c::
path := GetWorkingFolder()
Run, %comspec% /k "%VS90COMNTOOLS%vsvars32.bat", %path%
return
; irb
#!b::
path := GetWorkingFolder()
Run, c:cygwinbinruby /usr/bin/irb, %path%
return
; Bash
#b::
path := GetWorkingFolder()
Run, bash --login, %path%
return
; Paste in console
+INS::
if WinActive("ahk_class ConsoleWindowClass") {
WinGetPos, x, y, w, h, A
MouseGetPos, mx, my
;MsgBox x=%x% y=%y% w=%w% h=%h% mx=%mx% my=%my%
if (mx < 10)
mx = 10
else if (mx > w - 30)
mx := w - 30
if (my < 40)
my = 40
else if (my > h)
my := h - 10
MouseClick, right, mx, my
}
return
For anyone who is interested, you can find this script at rwin on github
edited Jan 10 '17 at 22:13
answered Mar 17 '11 at 16:41
CodismCodism
2,65132125
2,65132125
2
+1 for solving the exact problem I was trying to solve, a year later. Thanks for the script.
– mike9322
Mar 3 '12 at 16:10
It's now part of my windows tool set, you can find it here: code.google.com/p/rwintools. The script has also been updated to support windows 7. I am planning to add more document recently.
– Codism
Mar 4 '12 at 21:37
Wow. I only just discovered AutoHotkey and was just looking for this /exact/ thing. Thanks so much!
– iono
Oct 31 '12 at 15:50
add a comment |
2
+1 for solving the exact problem I was trying to solve, a year later. Thanks for the script.
– mike9322
Mar 3 '12 at 16:10
It's now part of my windows tool set, you can find it here: code.google.com/p/rwintools. The script has also been updated to support windows 7. I am planning to add more document recently.
– Codism
Mar 4 '12 at 21:37
Wow. I only just discovered AutoHotkey and was just looking for this /exact/ thing. Thanks so much!
– iono
Oct 31 '12 at 15:50
2
2
+1 for solving the exact problem I was trying to solve, a year later. Thanks for the script.
– mike9322
Mar 3 '12 at 16:10
+1 for solving the exact problem I was trying to solve, a year later. Thanks for the script.
– mike9322
Mar 3 '12 at 16:10
It's now part of my windows tool set, you can find it here: code.google.com/p/rwintools. The script has also been updated to support windows 7. I am planning to add more document recently.
– Codism
Mar 4 '12 at 21:37
It's now part of my windows tool set, you can find it here: code.google.com/p/rwintools. The script has also been updated to support windows 7. I am planning to add more document recently.
– Codism
Mar 4 '12 at 21:37
Wow. I only just discovered AutoHotkey and was just looking for this /exact/ thing. Thanks so much!
– iono
Oct 31 '12 at 15:50
Wow. I only just discovered AutoHotkey and was just looking for this /exact/ thing. Thanks so much!
– iono
Oct 31 '12 at 15:50
add a comment |
Update: This is built into Windows now. See this answer.
The XP powertoy is a good option, but I thought I'd post another, in case you'd like to "roll your own". Create a text file, name it anything.reg, paste in the code below, save it, then double-click on it to add it to the registry (or just add the info to the registry manually if you understand what's going on in this .reg file).
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...]
@="Command Prompt Here..."
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...command]
@="cmd.exe "%1""
Update: After an Windows-update, Win10 removed the cmd-here feature. To reactivate it you've to use:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /s /k pushd "%V""
The entry ShowBasedOnVelocityId
is mandatory
add a comment |
Update: This is built into Windows now. See this answer.
The XP powertoy is a good option, but I thought I'd post another, in case you'd like to "roll your own". Create a text file, name it anything.reg, paste in the code below, save it, then double-click on it to add it to the registry (or just add the info to the registry manually if you understand what's going on in this .reg file).
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...]
@="Command Prompt Here..."
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...command]
@="cmd.exe "%1""
Update: After an Windows-update, Win10 removed the cmd-here feature. To reactivate it you've to use:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /s /k pushd "%V""
The entry ShowBasedOnVelocityId
is mandatory
add a comment |
Update: This is built into Windows now. See this answer.
The XP powertoy is a good option, but I thought I'd post another, in case you'd like to "roll your own". Create a text file, name it anything.reg, paste in the code below, save it, then double-click on it to add it to the registry (or just add the info to the registry manually if you understand what's going on in this .reg file).
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...]
@="Command Prompt Here..."
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...command]
@="cmd.exe "%1""
Update: After an Windows-update, Win10 removed the cmd-here feature. To reactivate it you've to use:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /s /k pushd "%V""
The entry ShowBasedOnVelocityId
is mandatory
Update: This is built into Windows now. See this answer.
The XP powertoy is a good option, but I thought I'd post another, in case you'd like to "roll your own". Create a text file, name it anything.reg, paste in the code below, save it, then double-click on it to add it to the registry (or just add the info to the registry manually if you understand what's going on in this .reg file).
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...]
@="Command Prompt Here..."
[HKEY_CLASSES_ROOTFoldershellCommand_Prompt_Here...command]
@="cmd.exe "%1""
Update: After an Windows-update, Win10 removed the cmd-here feature. To reactivate it you've to use:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /s /k pushd "%V""
The entry ShowBasedOnVelocityId
is mandatory
edited Aug 11 '17 at 7:22
rundekugel
33229
33229
answered Oct 18 '08 at 21:03
ravenraven
13.5k1469104
13.5k1469104
add a comment |
add a comment |
For windows 7 or later, inside the target folder address bar just type cmd. That is it. It will open up command prompt with path set to your present directory.
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
add a comment |
For windows 7 or later, inside the target folder address bar just type cmd. That is it. It will open up command prompt with path set to your present directory.
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
add a comment |
For windows 7 or later, inside the target folder address bar just type cmd. That is it. It will open up command prompt with path set to your present directory.
For windows 7 or later, inside the target folder address bar just type cmd. That is it. It will open up command prompt with path set to your present directory.
answered Oct 9 '15 at 9:02
TomCatTomCat
351714
351714
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
add a comment |
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
this is nice idea and works, with just one exception: if it has sub folder named cmd
– user6169399
Jun 3 '16 at 3:01
add a comment |
Easiest way is to goto the address bar of the Windows Explorer and type cmd
there. It will automatically open the command prompt window for you.
The question was about how to open a prompt in a specific directory. This doesn't answer the question.
– solarissmoke
Jun 3 '16 at 2:36
1
this is nice idea and works, with just one exception: if it has sub folder named cmd.
– user6169399
Jun 3 '16 at 2:54
@solarissmoke this actually does answer the question: navigate to the directory in Explorer, then typecmd
in the directory URL at the top of the explorer window. It opens cmd right at the window's directory. No navigation in the terminal what so ever. Just to make sure everyone is on the same page: Windows Explorer is not the same thing as Internet Explorer, the Run Dialog, or the Task Manager.
– TekuConcept
Jul 19 '16 at 22:37
add a comment |
Easiest way is to goto the address bar of the Windows Explorer and type cmd
there. It will automatically open the command prompt window for you.
The question was about how to open a prompt in a specific directory. This doesn't answer the question.
– solarissmoke
Jun 3 '16 at 2:36
1
this is nice idea and works, with just one exception: if it has sub folder named cmd.
– user6169399
Jun 3 '16 at 2:54
@solarissmoke this actually does answer the question: navigate to the directory in Explorer, then typecmd
in the directory URL at the top of the explorer window. It opens cmd right at the window's directory. No navigation in the terminal what so ever. Just to make sure everyone is on the same page: Windows Explorer is not the same thing as Internet Explorer, the Run Dialog, or the Task Manager.
– TekuConcept
Jul 19 '16 at 22:37
add a comment |
Easiest way is to goto the address bar of the Windows Explorer and type cmd
there. It will automatically open the command prompt window for you.
Easiest way is to goto the address bar of the Windows Explorer and type cmd
there. It will automatically open the command prompt window for you.
edited Jun 3 '16 at 23:12
metasim
3,17223461
3,17223461
answered Jun 3 '16 at 2:33
Syed. ASyed. A
8913
8913
The question was about how to open a prompt in a specific directory. This doesn't answer the question.
– solarissmoke
Jun 3 '16 at 2:36
1
this is nice idea and works, with just one exception: if it has sub folder named cmd.
– user6169399
Jun 3 '16 at 2:54
@solarissmoke this actually does answer the question: navigate to the directory in Explorer, then typecmd
in the directory URL at the top of the explorer window. It opens cmd right at the window's directory. No navigation in the terminal what so ever. Just to make sure everyone is on the same page: Windows Explorer is not the same thing as Internet Explorer, the Run Dialog, or the Task Manager.
– TekuConcept
Jul 19 '16 at 22:37
add a comment |
The question was about how to open a prompt in a specific directory. This doesn't answer the question.
– solarissmoke
Jun 3 '16 at 2:36
1
this is nice idea and works, with just one exception: if it has sub folder named cmd.
– user6169399
Jun 3 '16 at 2:54
@solarissmoke this actually does answer the question: navigate to the directory in Explorer, then typecmd
in the directory URL at the top of the explorer window. It opens cmd right at the window's directory. No navigation in the terminal what so ever. Just to make sure everyone is on the same page: Windows Explorer is not the same thing as Internet Explorer, the Run Dialog, or the Task Manager.
– TekuConcept
Jul 19 '16 at 22:37
The question was about how to open a prompt in a specific directory. This doesn't answer the question.
– solarissmoke
Jun 3 '16 at 2:36
The question was about how to open a prompt in a specific directory. This doesn't answer the question.
– solarissmoke
Jun 3 '16 at 2:36
1
1
this is nice idea and works, with just one exception: if it has sub folder named cmd.
– user6169399
Jun 3 '16 at 2:54
this is nice idea and works, with just one exception: if it has sub folder named cmd.
– user6169399
Jun 3 '16 at 2:54
@solarissmoke this actually does answer the question: navigate to the directory in Explorer, then type
cmd
in the directory URL at the top of the explorer window. It opens cmd right at the window's directory. No navigation in the terminal what so ever. Just to make sure everyone is on the same page: Windows Explorer is not the same thing as Internet Explorer, the Run Dialog, or the Task Manager.– TekuConcept
Jul 19 '16 at 22:37
@solarissmoke this actually does answer the question: navigate to the directory in Explorer, then type
cmd
in the directory URL at the top of the explorer window. It opens cmd right at the window's directory. No navigation in the terminal what so ever. Just to make sure everyone is on the same page: Windows Explorer is not the same thing as Internet Explorer, the Run Dialog, or the Task Manager.– TekuConcept
Jul 19 '16 at 22:37
add a comment |
command 'pushd' will set currect folder so:
cmd /k "pushd D:Music"
Best/easiest answer I've found if you are opening a win10 administrative cmd (shortcut) prompt. Normally, admin prompt will force "start in" location to C:Windowssystem32.. no matter the 'start in' location you set.
– bshea
Aug 1 '18 at 18:05
"cd {path}" will also work.
– bshea
Aug 12 '18 at 16:26
Good tip. I use alternative 'C:WindowsSystem32cmd.exe cmd /K "cd /d D:Bla"'.
– gast128
Mar 4 at 13:48
add a comment |
command 'pushd' will set currect folder so:
cmd /k "pushd D:Music"
Best/easiest answer I've found if you are opening a win10 administrative cmd (shortcut) prompt. Normally, admin prompt will force "start in" location to C:Windowssystem32.. no matter the 'start in' location you set.
– bshea
Aug 1 '18 at 18:05
"cd {path}" will also work.
– bshea
Aug 12 '18 at 16:26
Good tip. I use alternative 'C:WindowsSystem32cmd.exe cmd /K "cd /d D:Bla"'.
– gast128
Mar 4 at 13:48
add a comment |
command 'pushd' will set currect folder so:
cmd /k "pushd D:Music"
command 'pushd' will set currect folder so:
cmd /k "pushd D:Music"
answered Aug 8 '17 at 8:53
Mendi BarelMendi Barel
1,573198
1,573198
Best/easiest answer I've found if you are opening a win10 administrative cmd (shortcut) prompt. Normally, admin prompt will force "start in" location to C:Windowssystem32.. no matter the 'start in' location you set.
– bshea
Aug 1 '18 at 18:05
"cd {path}" will also work.
– bshea
Aug 12 '18 at 16:26
Good tip. I use alternative 'C:WindowsSystem32cmd.exe cmd /K "cd /d D:Bla"'.
– gast128
Mar 4 at 13:48
add a comment |
Best/easiest answer I've found if you are opening a win10 administrative cmd (shortcut) prompt. Normally, admin prompt will force "start in" location to C:Windowssystem32.. no matter the 'start in' location you set.
– bshea
Aug 1 '18 at 18:05
"cd {path}" will also work.
– bshea
Aug 12 '18 at 16:26
Good tip. I use alternative 'C:WindowsSystem32cmd.exe cmd /K "cd /d D:Bla"'.
– gast128
Mar 4 at 13:48
Best/easiest answer I've found if you are opening a win10 administrative cmd (shortcut) prompt. Normally, admin prompt will force "start in" location to C:Windowssystem32.. no matter the 'start in' location you set.
– bshea
Aug 1 '18 at 18:05
Best/easiest answer I've found if you are opening a win10 administrative cmd (shortcut) prompt. Normally, admin prompt will force "start in" location to C:Windowssystem32.. no matter the 'start in' location you set.
– bshea
Aug 1 '18 at 18:05
"cd {path}" will also work.
– bshea
Aug 12 '18 at 16:26
"cd {path}" will also work.
– bshea
Aug 12 '18 at 16:26
Good tip. I use alternative 'C:WindowsSystem32cmd.exe cmd /K "cd /d D:Bla"'.
– gast128
Mar 4 at 13:48
Good tip. I use alternative 'C:WindowsSystem32cmd.exe cmd /K "cd /d D:Bla"'.
– gast128
Mar 4 at 13:48
add a comment |
In File Explorer, press and hold the Shift
key, then right click
or press and hold
on a folder
or drive
that you want to open the command prompt at that location for, and click/tap
on Open Command Prompt Here
option.
add a comment |
In File Explorer, press and hold the Shift
key, then right click
or press and hold
on a folder
or drive
that you want to open the command prompt at that location for, and click/tap
on Open Command Prompt Here
option.
add a comment |
In File Explorer, press and hold the Shift
key, then right click
or press and hold
on a folder
or drive
that you want to open the command prompt at that location for, and click/tap
on Open Command Prompt Here
option.
In File Explorer, press and hold the Shift
key, then right click
or press and hold
on a folder
or drive
that you want to open the command prompt at that location for, and click/tap
on Open Command Prompt Here
option.
answered Feb 9 '16 at 14:01
ofir_aghaiofir_aghai
1,16111825
1,16111825
add a comment |
add a comment |
I see that there are multiple answers, some are quite complex :) , strange to see them. You just have to open any windows folder window, navigate to your desired folder and focus on address bar and enter "cmd" and press enter, you would be presented with new command prompt window directly with the folder path or location that we already navigated in windows folder window.
In case you want to see these steps with clear images you can check out
how to open command prompt in a specific folder directly
add a comment |
I see that there are multiple answers, some are quite complex :) , strange to see them. You just have to open any windows folder window, navigate to your desired folder and focus on address bar and enter "cmd" and press enter, you would be presented with new command prompt window directly with the folder path or location that we already navigated in windows folder window.
In case you want to see these steps with clear images you can check out
how to open command prompt in a specific folder directly
add a comment |
I see that there are multiple answers, some are quite complex :) , strange to see them. You just have to open any windows folder window, navigate to your desired folder and focus on address bar and enter "cmd" and press enter, you would be presented with new command prompt window directly with the folder path or location that we already navigated in windows folder window.
In case you want to see these steps with clear images you can check out
how to open command prompt in a specific folder directly
I see that there are multiple answers, some are quite complex :) , strange to see them. You just have to open any windows folder window, navigate to your desired folder and focus on address bar and enter "cmd" and press enter, you would be presented with new command prompt window directly with the folder path or location that we already navigated in windows folder window.
In case you want to see these steps with clear images you can check out
how to open command prompt in a specific folder directly
answered Jun 15 '16 at 17:49
Srinivas PSrinivas P
7112
7112
add a comment |
add a comment |
For windows :
Select the folder which you want to open in command prompt - After selection,
Keeping the 'Shift key' pressed. Right click there and choose option
"open command window here"
add a comment |
For windows :
Select the folder which you want to open in command prompt - After selection,
Keeping the 'Shift key' pressed. Right click there and choose option
"open command window here"
add a comment |
For windows :
Select the folder which you want to open in command prompt - After selection,
Keeping the 'Shift key' pressed. Right click there and choose option
"open command window here"
For windows :
Select the folder which you want to open in command prompt - After selection,
Keeping the 'Shift key' pressed. Right click there and choose option
"open command window here"
edited Jun 14 '17 at 8:17
answered Feb 7 '17 at 5:51
Pankaj ShrivastavaPankaj Shrivastava
32425
32425
add a comment |
add a comment |
Make the shortcut to cmd.exe with params /S /K pushd "C:YOUR FOLDER"
add a comment |
Make the shortcut to cmd.exe with params /S /K pushd "C:YOUR FOLDER"
add a comment |
Make the shortcut to cmd.exe with params /S /K pushd "C:YOUR FOLDER"
Make the shortcut to cmd.exe with params /S /K pushd "C:YOUR FOLDER"
answered Mar 24 '17 at 17:57
JasonXAJasonXA
21936
21936
add a comment |
add a comment |
If you are starting cmd from taskbar, this is what you need to do:
right click --> rightclick on Command Prompt --> Properties
Then in the properties window change the value of Start in:
This solution doesn't work for opening command prompt as administrator
"Start in:" location under my Windows 10 does not work if it's an administrative prompt. -> ALWAYS opens in system32 for me.
– bshea
Aug 1 '18 at 18:02
1
@bshea You are right, I tried and got the same results. So the solution can only be used for non-admin command prompts.
– Arman
Aug 2 '18 at 14:52
Yep.. was driving me nuts. use pushd per stackoverflow.com/a/45563746/503621 - is best/easiest can find for admin prompt location setting..
– bshea
Aug 3 '18 at 0:49
add a comment |
If you are starting cmd from taskbar, this is what you need to do:
right click --> rightclick on Command Prompt --> Properties
Then in the properties window change the value of Start in:
This solution doesn't work for opening command prompt as administrator
"Start in:" location under my Windows 10 does not work if it's an administrative prompt. -> ALWAYS opens in system32 for me.
– bshea
Aug 1 '18 at 18:02
1
@bshea You are right, I tried and got the same results. So the solution can only be used for non-admin command prompts.
– Arman
Aug 2 '18 at 14:52
Yep.. was driving me nuts. use pushd per stackoverflow.com/a/45563746/503621 - is best/easiest can find for admin prompt location setting..
– bshea
Aug 3 '18 at 0:49
add a comment |
If you are starting cmd from taskbar, this is what you need to do:
right click --> rightclick on Command Prompt --> Properties
Then in the properties window change the value of Start in:
This solution doesn't work for opening command prompt as administrator
If you are starting cmd from taskbar, this is what you need to do:
right click --> rightclick on Command Prompt --> Properties
Then in the properties window change the value of Start in:
This solution doesn't work for opening command prompt as administrator
edited Aug 2 '18 at 14:54
answered May 18 '18 at 2:06
ArmanArman
642417
642417
"Start in:" location under my Windows 10 does not work if it's an administrative prompt. -> ALWAYS opens in system32 for me.
– bshea
Aug 1 '18 at 18:02
1
@bshea You are right, I tried and got the same results. So the solution can only be used for non-admin command prompts.
– Arman
Aug 2 '18 at 14:52
Yep.. was driving me nuts. use pushd per stackoverflow.com/a/45563746/503621 - is best/easiest can find for admin prompt location setting..
– bshea
Aug 3 '18 at 0:49
add a comment |
"Start in:" location under my Windows 10 does not work if it's an administrative prompt. -> ALWAYS opens in system32 for me.
– bshea
Aug 1 '18 at 18:02
1
@bshea You are right, I tried and got the same results. So the solution can only be used for non-admin command prompts.
– Arman
Aug 2 '18 at 14:52
Yep.. was driving me nuts. use pushd per stackoverflow.com/a/45563746/503621 - is best/easiest can find for admin prompt location setting..
– bshea
Aug 3 '18 at 0:49
"Start in:" location under my Windows 10 does not work if it's an administrative prompt. -> ALWAYS opens in system32 for me.
– bshea
Aug 1 '18 at 18:02
"Start in:" location under my Windows 10 does not work if it's an administrative prompt. -> ALWAYS opens in system32 for me.
– bshea
Aug 1 '18 at 18:02
1
1
@bshea You are right, I tried and got the same results. So the solution can only be used for non-admin command prompts.
– Arman
Aug 2 '18 at 14:52
@bshea You are right, I tried and got the same results. So the solution can only be used for non-admin command prompts.
– Arman
Aug 2 '18 at 14:52
Yep.. was driving me nuts. use pushd per stackoverflow.com/a/45563746/503621 - is best/easiest can find for admin prompt location setting..
– bshea
Aug 3 '18 at 0:49
Yep.. was driving me nuts. use pushd per stackoverflow.com/a/45563746/503621 - is best/easiest can find for admin prompt location setting..
– bshea
Aug 3 '18 at 0:49
add a comment |
There is a simplier way I know. Find cmd.exe in start menu and send it to Desktop as shortcut. Then right-click it and choose properties. You will see "Start in" box under the "Target". Change that directory as whatever you'd like to set. Click OK and start cmd.exe which is in your Desktop. In my opinion, it's a very easy and certain solution :)
add a comment |
There is a simplier way I know. Find cmd.exe in start menu and send it to Desktop as shortcut. Then right-click it and choose properties. You will see "Start in" box under the "Target". Change that directory as whatever you'd like to set. Click OK and start cmd.exe which is in your Desktop. In my opinion, it's a very easy and certain solution :)
add a comment |
There is a simplier way I know. Find cmd.exe in start menu and send it to Desktop as shortcut. Then right-click it and choose properties. You will see "Start in" box under the "Target". Change that directory as whatever you'd like to set. Click OK and start cmd.exe which is in your Desktop. In my opinion, it's a very easy and certain solution :)
There is a simplier way I know. Find cmd.exe in start menu and send it to Desktop as shortcut. Then right-click it and choose properties. You will see "Start in" box under the "Target". Change that directory as whatever you'd like to set. Click OK and start cmd.exe which is in your Desktop. In my opinion, it's a very easy and certain solution :)
edited Nov 2 '11 at 9:13
Martin Brown
17.1k116197
17.1k116197
answered Nov 2 '11 at 9:00
destroyer313destroyer313
411
411
add a comment |
add a comment |
This program always opens cmd.exe in the current path of your Explorer:
https://github.com/jhasse/smart_cmd
You can also pin it to your taskbar and then use WindowsKey+[1-0] as a keyboard shortcut.
add a comment |
This program always opens cmd.exe in the current path of your Explorer:
https://github.com/jhasse/smart_cmd
You can also pin it to your taskbar and then use WindowsKey+[1-0] as a keyboard shortcut.
add a comment |
This program always opens cmd.exe in the current path of your Explorer:
https://github.com/jhasse/smart_cmd
You can also pin it to your taskbar and then use WindowsKey+[1-0] as a keyboard shortcut.
This program always opens cmd.exe in the current path of your Explorer:
https://github.com/jhasse/smart_cmd
You can also pin it to your taskbar and then use WindowsKey+[1-0] as a keyboard shortcut.
edited Jan 16 '12 at 10:12
answered Jan 16 '12 at 9:43
jhassejhasse
1,02211630
1,02211630
add a comment |
add a comment |
In Windows Explorer - shift + right mouse click above folder "Open command window here" option show up in the menu. Or in language of your Windows version.
add a comment |
In Windows Explorer - shift + right mouse click above folder "Open command window here" option show up in the menu. Or in language of your Windows version.
add a comment |
In Windows Explorer - shift + right mouse click above folder "Open command window here" option show up in the menu. Or in language of your Windows version.
In Windows Explorer - shift + right mouse click above folder "Open command window here" option show up in the menu. Or in language of your Windows version.
answered Jan 14 '14 at 23:39
Petr NovotnyPetr Novotny
1595
1595
add a comment |
add a comment |
I noticed that the Shift + Right click super-long context menu with the "Open command window here" option does not always display for whatever reason (I'm using Windows 10) so here's a method that will always work:
Hit Start, type "cmd", Right-click "Command Prompt" > Click "Open File Location".
Copy the "Command Prompt" shortcut to the directory where you wish you could just open cmd at directly.
Right click your new shortcut and click "Properties".
Edit the "Start in:" field to be either blank or %CD% and then click "OK".
Now when you click this shortcut it will open the command prompt pointing at the current directory that the shortcut is currently in, e.g. copy this shortcut to the desktop and run it to open cmd to the desktop directory.
add a comment |
I noticed that the Shift + Right click super-long context menu with the "Open command window here" option does not always display for whatever reason (I'm using Windows 10) so here's a method that will always work:
Hit Start, type "cmd", Right-click "Command Prompt" > Click "Open File Location".
Copy the "Command Prompt" shortcut to the directory where you wish you could just open cmd at directly.
Right click your new shortcut and click "Properties".
Edit the "Start in:" field to be either blank or %CD% and then click "OK".
Now when you click this shortcut it will open the command prompt pointing at the current directory that the shortcut is currently in, e.g. copy this shortcut to the desktop and run it to open cmd to the desktop directory.
add a comment |
I noticed that the Shift + Right click super-long context menu with the "Open command window here" option does not always display for whatever reason (I'm using Windows 10) so here's a method that will always work:
Hit Start, type "cmd", Right-click "Command Prompt" > Click "Open File Location".
Copy the "Command Prompt" shortcut to the directory where you wish you could just open cmd at directly.
Right click your new shortcut and click "Properties".
Edit the "Start in:" field to be either blank or %CD% and then click "OK".
Now when you click this shortcut it will open the command prompt pointing at the current directory that the shortcut is currently in, e.g. copy this shortcut to the desktop and run it to open cmd to the desktop directory.
I noticed that the Shift + Right click super-long context menu with the "Open command window here" option does not always display for whatever reason (I'm using Windows 10) so here's a method that will always work:
Hit Start, type "cmd", Right-click "Command Prompt" > Click "Open File Location".
Copy the "Command Prompt" shortcut to the directory where you wish you could just open cmd at directly.
Right click your new shortcut and click "Properties".
Edit the "Start in:" field to be either blank or %CD% and then click "OK".
Now when you click this shortcut it will open the command prompt pointing at the current directory that the shortcut is currently in, e.g. copy this shortcut to the desktop and run it to open cmd to the desktop directory.
edited Apr 24 '18 at 5:55
answered Aug 2 '17 at 19:53
FocusedWolfFocusedWolf
631912
631912
add a comment |
add a comment |
With a Just-one-line file in batch:
START "Desire_Path" // Without quotes puth the location that you want to start in with cmd
Example (Open a text editor, place the code in there and save the file with a .bat extension):
START cd C:Users
Then just double click on it
****Note: if you want the explorer to complete the task don´t put the CD command.
*To do the opossite:
In order for you to open a particular directory with the explorer.exe aplication while using cmd you can use the command START and the absolute route of the folder that you want to display.
add a comment |
With a Just-one-line file in batch:
START "Desire_Path" // Without quotes puth the location that you want to start in with cmd
Example (Open a text editor, place the code in there and save the file with a .bat extension):
START cd C:Users
Then just double click on it
****Note: if you want the explorer to complete the task don´t put the CD command.
*To do the opossite:
In order for you to open a particular directory with the explorer.exe aplication while using cmd you can use the command START and the absolute route of the folder that you want to display.
add a comment |
With a Just-one-line file in batch:
START "Desire_Path" // Without quotes puth the location that you want to start in with cmd
Example (Open a text editor, place the code in there and save the file with a .bat extension):
START cd C:Users
Then just double click on it
****Note: if you want the explorer to complete the task don´t put the CD command.
*To do the opossite:
In order for you to open a particular directory with the explorer.exe aplication while using cmd you can use the command START and the absolute route of the folder that you want to display.
With a Just-one-line file in batch:
START "Desire_Path" // Without quotes puth the location that you want to start in with cmd
Example (Open a text editor, place the code in there and save the file with a .bat extension):
START cd C:Users
Then just double click on it
****Note: if you want the explorer to complete the task don´t put the CD command.
*To do the opossite:
In order for you to open a particular directory with the explorer.exe aplication while using cmd you can use the command START and the absolute route of the folder that you want to display.
edited Oct 8 '15 at 17:23
answered Oct 8 '15 at 16:59
Edward GavilánEdward Gavilán
515
515
add a comment |
add a comment |
This method is using cmd.exe
and Send to
shortcut so cmd.exe
can open directory directly. This alternative method is in case of not having Open command window here
in right click menu.
- Open 'File Explorer' and enter
shell:sendto
in location bar to navigate toSend to
folder. - Copy a
Command Prompt
shortcut or create a new shortcut.lnk
file. - Edit the properties of the shortcut and edit the target to
%windir%system32cmd.exe /k cd /d
and press 'OK' to save the change. - Right click on a folder and expand
Send to
menu to use thecmd
shortcut.
This shortcut should open a cmd
window with directory selected by the right click.
This method should work under Window 7 and 10 at least. Name the shortcut as Command Prompt (cd)
to specify the task of the shortcut.
Possible error messages:
- Show 'The directory name is invalid.' if other than folder is
selected. - Show 'The system cannot find the drive specified.' if the folder is
not existed. - Show 'The filename, directory name, or volume label syntax is incorrect.' if multiple files are selected.
Little about shortcut: The directory would be automatically added to the end of the shortcut as a parameter when using under Send to
, so the shortcut does not need to type in the directory.
add a comment |
This method is using cmd.exe
and Send to
shortcut so cmd.exe
can open directory directly. This alternative method is in case of not having Open command window here
in right click menu.
- Open 'File Explorer' and enter
shell:sendto
in location bar to navigate toSend to
folder. - Copy a
Command Prompt
shortcut or create a new shortcut.lnk
file. - Edit the properties of the shortcut and edit the target to
%windir%system32cmd.exe /k cd /d
and press 'OK' to save the change. - Right click on a folder and expand
Send to
menu to use thecmd
shortcut.
This shortcut should open a cmd
window with directory selected by the right click.
This method should work under Window 7 and 10 at least. Name the shortcut as Command Prompt (cd)
to specify the task of the shortcut.
Possible error messages:
- Show 'The directory name is invalid.' if other than folder is
selected. - Show 'The system cannot find the drive specified.' if the folder is
not existed. - Show 'The filename, directory name, or volume label syntax is incorrect.' if multiple files are selected.
Little about shortcut: The directory would be automatically added to the end of the shortcut as a parameter when using under Send to
, so the shortcut does not need to type in the directory.
add a comment |
This method is using cmd.exe
and Send to
shortcut so cmd.exe
can open directory directly. This alternative method is in case of not having Open command window here
in right click menu.
- Open 'File Explorer' and enter
shell:sendto
in location bar to navigate toSend to
folder. - Copy a
Command Prompt
shortcut or create a new shortcut.lnk
file. - Edit the properties of the shortcut and edit the target to
%windir%system32cmd.exe /k cd /d
and press 'OK' to save the change. - Right click on a folder and expand
Send to
menu to use thecmd
shortcut.
This shortcut should open a cmd
window with directory selected by the right click.
This method should work under Window 7 and 10 at least. Name the shortcut as Command Prompt (cd)
to specify the task of the shortcut.
Possible error messages:
- Show 'The directory name is invalid.' if other than folder is
selected. - Show 'The system cannot find the drive specified.' if the folder is
not existed. - Show 'The filename, directory name, or volume label syntax is incorrect.' if multiple files are selected.
Little about shortcut: The directory would be automatically added to the end of the shortcut as a parameter when using under Send to
, so the shortcut does not need to type in the directory.
This method is using cmd.exe
and Send to
shortcut so cmd.exe
can open directory directly. This alternative method is in case of not having Open command window here
in right click menu.
- Open 'File Explorer' and enter
shell:sendto
in location bar to navigate toSend to
folder. - Copy a
Command Prompt
shortcut or create a new shortcut.lnk
file. - Edit the properties of the shortcut and edit the target to
%windir%system32cmd.exe /k cd /d
and press 'OK' to save the change. - Right click on a folder and expand
Send to
menu to use thecmd
shortcut.
This shortcut should open a cmd
window with directory selected by the right click.
This method should work under Window 7 and 10 at least. Name the shortcut as Command Prompt (cd)
to specify the task of the shortcut.
Possible error messages:
- Show 'The directory name is invalid.' if other than folder is
selected. - Show 'The system cannot find the drive specified.' if the folder is
not existed. - Show 'The filename, directory name, or volume label syntax is incorrect.' if multiple files are selected.
Little about shortcut: The directory would be automatically added to the end of the shortcut as a parameter when using under Send to
, so the shortcut does not need to type in the directory.
answered Dec 30 '15 at 18:15
Forest JackdawForest Jackdaw
311
311
add a comment |
add a comment |
Right click the desktop and navigate to new and then from the sub-menu select "shortcut" → Browse to the Windows directory (or folder) and then to the system32
directory and click OK.
Add a and "cmd.exe" (without the quotes) to the command string. It should look like this:
C:WINDOWSSystem32cmd.exe.
Click Next and Finish. Right click the new CMD icon on your desktop and select properties, and Next to the Start. In options, delete the line and add the path to wherever the directory is that you want it to start in... For example, C:tempmp3
and click OK.
add a comment |
Right click the desktop and navigate to new and then from the sub-menu select "shortcut" → Browse to the Windows directory (or folder) and then to the system32
directory and click OK.
Add a and "cmd.exe" (without the quotes) to the command string. It should look like this:
C:WINDOWSSystem32cmd.exe.
Click Next and Finish. Right click the new CMD icon on your desktop and select properties, and Next to the Start. In options, delete the line and add the path to wherever the directory is that you want it to start in... For example, C:tempmp3
and click OK.
add a comment |
Right click the desktop and navigate to new and then from the sub-menu select "shortcut" → Browse to the Windows directory (or folder) and then to the system32
directory and click OK.
Add a and "cmd.exe" (without the quotes) to the command string. It should look like this:
C:WINDOWSSystem32cmd.exe.
Click Next and Finish. Right click the new CMD icon on your desktop and select properties, and Next to the Start. In options, delete the line and add the path to wherever the directory is that you want it to start in... For example, C:tempmp3
and click OK.
Right click the desktop and navigate to new and then from the sub-menu select "shortcut" → Browse to the Windows directory (or folder) and then to the system32
directory and click OK.
Add a and "cmd.exe" (without the quotes) to the command string. It should look like this:
C:WINDOWSSystem32cmd.exe.
Click Next and Finish. Right click the new CMD icon on your desktop and select properties, and Next to the Start. In options, delete the line and add the path to wherever the directory is that you want it to start in... For example, C:tempmp3
and click OK.
edited Jan 10 '17 at 21:10
Peter Mortensen
13.8k1986113
13.8k1986113
answered Oct 18 '08 at 20:25
add a comment |
add a comment |
go to folder location in file explorer remove path and type cmd and press enter. and path will open in cmd.
thanks easiest way.
– vidy
Dec 6 '18 at 13:19
add a comment |
go to folder location in file explorer remove path and type cmd and press enter. and path will open in cmd.
thanks easiest way.
– vidy
Dec 6 '18 at 13:19
add a comment |
go to folder location in file explorer remove path and type cmd and press enter. and path will open in cmd.
go to folder location in file explorer remove path and type cmd and press enter. and path will open in cmd.
answered Nov 25 '18 at 13:52
VinayVinay
377114
377114
thanks easiest way.
– vidy
Dec 6 '18 at 13:19
add a comment |
thanks easiest way.
– vidy
Dec 6 '18 at 13:19
thanks easiest way.
– vidy
Dec 6 '18 at 13:19
thanks easiest way.
– vidy
Dec 6 '18 at 13:19
add a comment |
You can also do this:
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
[HKEY_CLASSES_ROOTDriveshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDriveshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
Update: for Win10 you need ShowBasedOnVelocityId
- see answer above.
add a comment |
You can also do this:
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
[HKEY_CLASSES_ROOTDriveshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDriveshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
Update: for Win10 you need ShowBasedOnVelocityId
- see answer above.
add a comment |
You can also do this:
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
[HKEY_CLASSES_ROOTDriveshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDriveshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
Update: for Win10 you need ShowBasedOnVelocityId
- see answer above.
You can also do this:
[HKEY_CLASSES_ROOTDirectoryshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
[HKEY_CLASSES_ROOTDriveshellcmd]
@="command prompt here"
[HKEY_CLASSES_ROOTDriveshellcmdcommand]
@="cmd.exe /c start "%1" cmd.exe /k cd /d %1"
Update: for Win10 you need ShowBasedOnVelocityId
- see answer above.
edited Aug 13 '17 at 11:40
rundekugel
33229
33229
answered Aug 3 '09 at 6:58
crowdycrowdy
4317
4317
add a comment |
add a comment |
1 2
next
protected by JJJ Jan 10 '17 at 21:43
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?