![]() |
|
10 Jun 2010 | #10 |
|
Hello Rover,
I'm not sure why you and SIW had a issue with this Open Command Window Here as Administrator and the Take Ownership context menu items working with both added to the context menu separately. I have not had any issues with them. ![]() |
My System Specs![]() |
. |
|
11 Jun 2010 | #11 |
|
Yeah,sorry I meant SIW2,got names mixed up.
Thanx for ur help Brink,they both work fine now thanx to u. |
My System Specs![]() |
12 Jun 2010 | #12 |
|
Hello Rover,
I'm not sure why you and SIW had a issue with this Open Command Window Here as Administrator and the Take Ownership context menu items working with both added to the context menu separately. I have not had any issues with them. ![]() I have updated the Open Command Window Here as Administrator and the Take Ownership downloads so that installing one will completely remove the other one so it will not cause issues. I have not found a way to have both in the context menu at the same time yet since they both use the runas key and cannot use it at the same time. ![]() |
My System Specs![]() |
13 Jun 2010 | #13 |
|
To Brink
I just tried it to make sure,and since the change
ie: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\Command as Admin] [HKEY_CLASSES_ROOT\Directory\shell\Command as Admin\command] @="cmd.exe /s /k pushd \"%V\"" Not inside run as,it works fine. I just took over a folder and got up a command window as admin while it was doing it. Definitely works for me now,thanx Brink. ![]() |
My System Specs![]() |
. |
|
13 Jun 2010 | #14 |
|
Hello Rover,
Sorry, but it's not a elevated command prompt. ![]() If you type diskpart (requires elevated command prompt to use) and press enter in the command prompt that you open using the above, UAC will prompt you to then elevate the command prompt. The "C:\Windows\system32.cmd.exe" in the tiltle bar is misleading since a title bar does not indicate whether it's elevated or not. Thank you though. ![]() |
My System Specs![]() |
23 Nov 2011 | #15 |
|
Hello All,
As a possible solution to having both an Elevated Prompt and the Take Ownership menu option in the context menu, what I have found that you can do is first install the Take Ownership registry file. For the Elevated Command Prompt, the process is a little bit more involved. The first step is to copy the cmd.exe file from C:\Windows\System32 directory to C:\Windows. The next and key step is to change the properties of the cmd.exe file that you just copied in to the C:\Windows directory. What you want to do is to change the Compatibility settings for the cmd.exe file and check the box for "Run this program as an administrator". The next few steps are just to manually edit the registry settings to add the Elevated Command Prompt context menu choice. In HKCR>Directory>shell, create the key ElevatedPrompt. For the Default REG_SZ setting, change the value to "Open Elevated Command Prompt Here". Next, create a new string value called Icon and assign is the value "C:\Windows\cmd.exe". Now, create a sub key from ElevatedPrompt called "command". Inside this sub key, assign the default value of cmd.exe /s /k pushd "%V". Repeat the above steps in HKCR>Drive>shell. Now, you should have both Take Ownership and Elevated Command Prompt active in the context menu. I hope this helps. Doc. |
My System Specs![]() |
05 Oct 2012 | #16 |
|
Great addon. One request to make it better
This is a great addon for Win7. However it leaves you in the slightly odd situation where getting to a command prompt with admin privs is easier than just opening a (non-admin) shell with "Open Command Window Here".
Opening a normal command shell needs you to hold down the shift key to get the extended right-click menu, whereas this adds an admin shell to the normal (non-shift) right click menu. So, any chance of a tweak to either-
colin_e |
My System Specs![]() |
05 Oct 2012 | #17 |
|
Hello Colin_e,
Sure. You could use the tutorial below to have Open Command Window Here availabl without having to press and hold Shift, and just right click. Open Command Window Here - Add or Remove Shift + Right Click Hope this helps, ![]() Shawn |
My System Specs![]() |
06 Aug 2013 | #18 |
|
I'm having a problem. Suppose I am in a directory (say, X:\folder1), and I want the cmd to reference this directory. When I've done this previously using some other reg key, I would right click a folder in this directory (say X:\folder1\folder2) and open the command prompt and it would open a cmd at X:\folder1.
With this reg fix, the cmd opens in X:\folder1\folder2 instead. I don't remember where I found the other key but I lost it somehow. How can I edit this code to open the cmd one directory higher than it currently is? I know that it would be an easy code fix, though, except I am not sure how to edit the key. [-HKEY_CLASSES_ROOT\Directory\shell\runas] [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Open command window here as Administrator" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" [-HKEY_CLASSES_ROOT\Directory\Background\shell\runas] [HKEY_CLASSES_ROOT\Directory\Background\shell\runas] @="Open command window here as Administrator" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" [-HKEY_CLASSES_ROOT\Drive\shell\runas] [HKEY_CLASSES_ROOT\Drive\shell\runas] @="Open command window here as Administrator" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Drive\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" Thanks. ![]() |
My System Specs![]() |
06 Aug 2013 | #19 |
|
Hello PistolSlap,
To "Open command window here" for a specific folder (ex: A), you would need to either press shift + right click on that folder (ex: A) OR press shift + right click on an empty area in that folder (ex: A). If you shift + right click on a folder (ex: B) inside the specific folder (ex: A), then it would open to B and not A. Hope this helps, ![]() Shawn |
My System Specs![]() |
![]() |
Thread Tools | |
Similar help and support threads | ||||
Thread | Forum | |||
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 not working Open command window here not working Left click a blank space in the folder to ensure you haven't selected anything and hold CTRL + Shift and Right click in a blank space. i want to Merge text(.text)files and for that i need to Open command window in a folder dierectory, any solution? thanks... |
General Discussion | |||
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 | |||
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 | |||
Problem open command Window(administrator) I'm trying to create some auto setup procedures but can not setup a CMD administrator command ( non administrator seems to work) registry tweak ; //run administrator command from explorer @="Open Command Window Here (Administrator)" |
Network & Sharing |
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 04:46. |
![]() ![]() ![]() ![]() ![]() |