Open Command Window Here

I ran across this article (Open Command Window Here « Burgaud.com) about adding the Open Command Line Here to the Right Click menu in Explorer.

It’s a good article and it shows you how to do the job with some registry hacks.

I have included my versions here:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellrunas]
@="Open Command Window Here"
[HKEY_CLASSES_ROOTDirectoryshellrunascommand]
@="cmd.exe /k pushd %L"

[HKEY_CLASSES_ROOTDirectoryshellCommandPrompt]
@="Open Command Window Here"
[HKEY_CLASSES_ROOTDirectoryshellCommandPromptcommand]
@="cmd.exe /k pushd %L"
[HKEY_CLASSES_ROOTDriveshellCommandPrompt]
@="Open Command Window Here"
[HKEY_CLASSES_ROOTDriveshellCommandPromptcommand]
@="cmd.exe /k pushd %L"

Just copy the above and save it to a regfile. I call mine open_cmd_here.reg

Then open up explorer and double click the file. It will ask you if you want to add this to your registry,

say yes and then close Explorer. Next time you open Explorer and right click on a Directory, you will have two options.

1. open a command prompt as an admin

2. as a regular user.

And here is one to add Powershell:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellpowershell]
@="PowerShell Here"
[HKEY_CLASSES_ROOTDirectoryshellpowershellcommand]
@="C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command Set-Location -LiteralPath ‘%L’"

 

 

 

Open Command Window Here « Burgaud.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s