Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Open elevated command window here

30 Mar 2010   #1
baarod

El Capitan / Windows 10
 
 
Open elevated command window here

I could prolly figure it out but does anyone know offhand how to add an "Open elevated command window here" option in addition to the "Open command window here" shift+context menu for a folder?


My System SpecsSystem Spec
.
30 Mar 2010   #2
richc46

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install
 
 

Hope this helps

Command Prompt. From our excellent tutorial collection
My System SpecsSystem Spec
30 Mar 2010   #3
Brink

64-bit Windows 10 Pro
 
 

Hello Mike,

Here you go mate.

Open Command Window Here as Administrator

Hope this helps,
Shawn
My System SpecsSystem Spec
.

31 Mar 2010   #4
baarod

El Capitan / Windows 10
 
 

I must be having a dull moment. I know how to shift+right click and get a command prompt. I'd like an elevated one the same way?
My System SpecsSystem Spec
31 Mar 2010   #5
Bill2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

Shift+control+right click on a folder and choose open command window.
My System SpecsSystem Spec
31 Mar 2010   #6
arkhi

Windows 2000 5.0 Build 2195
 
 

Guys. ELEVATED.

Edit 1: Okay, I'm currently experementing. Just a few more minutes and I can post a fix :P

Edit 2: Got it finally!! (I needed this too)

Open Command Window Here as Administrator

Add these keys:
Code:
 
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open elevated command window here"
"Extended"=""
"NoWorkingDirectory"=""
 
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
My System SpecsSystem Spec
31 Mar 2010   #7
baarod

El Capitan / Windows 10
 
 

Quote   Quote: Originally Posted by arkhi View Post
Guys. ELEVATED.

Edit 1: Okay, I'm currently experementing. Just a few more minutes and I can post a fix :P

Edit 2: Got it finally!! (I needed this too)

Add these keys:
Code:
 
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open elevated command window here"
"Extended"=""
"NoWorkingDirectory"=""
 
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
Now can you explain it? Thanks! Edit: Never mind -- i get the picture now
My System SpecsSystem Spec
01 Apr 2010   #8
baarod

El Capitan / Windows 10
 
 

Quote   Quote: Originally Posted by arkhi View Post
Guys. ELEVATED.

Edit 1: Okay, I'm currently experementing. Just a few more minutes and I can post a fix :P

Edit 2: Got it finally!! (I needed this too)

Open Command Window Here as Administrator

Add these keys:
Code:
 
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open elevated command window here"
"Extended"=""
"NoWorkingDirectory"=""
 
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
Nice. What's the Extended and NoWorkingDirectory for? I get the quoting issues and push/pop of the path.
My System SpecsSystem Spec
Reply

 Open elevated command window here




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Open Command Window Here as Administrator
Add or Remove "Open Command Window Here as Administrator" to Context Menu This will show you how to add or remove Open Command Window Here as Administrator to the context menu of a folder, drive, and desktop of all users to open an elevated command prompt with the focus at the library, folder,...
Tutorials
Open Command Window Here - Add or Remove
How to Add or Remove "Open Command Window Here" from Context Menu in Windows This will show you how to add or remove Open Command Window Here from the context menu of the desktop, folders, and drives in Vista, Windows 7, and Windows 8. You must be logged in as an administrator to be able to...
Tutorials
Open Command Window Here
How to Use "Open Command Window Here" in Windows 7 This will show you how to use the Open Command Window Here context menu item of a folder or drive to open a command prompt with the focus at the folder or drive location in Windows 7. This will make it easier to perform a command task at...
Tutorials
No REG Command in "Open elevated command window here" DOS Box
I have used the @="cmd.exe /s /k pushd \"%V\"" type of Registry mod to obtain a context menu "Open elevated command window here" menu item, such as in the "Open elevated command window here" thread ( http://www.sevenforums.com/general-discussion/75069-open-elevated-command-window-here.html ). ...
General Discussion
Open Command Window Here
For all DRIVES, <shift>|right-clicking displays OPEN COMMAND WINDOW HERE in the context menu, above the first separator. That item opens the command prompt. But for all other folders the OPEN COMMAND WINDOW HERE item displays below the first separator in the context box, and clicking on it...
General Discussion
How to open Elevated Command Prompt?
Hi friends ! Uber Philf told me to start a new thread with my problem. I cannot open an Elevated Command Prompt, Dont know why. I know that I can open it in two alternative ways : 1). Win+R, type cmd, hit enter eith ctrl+shift pressed ; and 2). start > all programs > accessories > command prompt >...
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:26.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App