win10 right mouse button to open the Add command prompt

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u012615439/article/details/88909109

Effect Preview:

step:

1. First we press win + R key combination to open the Run window, press Enter to open the Registry After entering regedit, and then in turn find the registry HKEY_CLASSES_ROOT \ Directory \ background \ shell, we right-click on the "shell", select "New" - "item",

2. After the establishment of good, we will name the new item named runasadmin, then we click runAsAdmin, then right-click on the "default" on the right, select "Modify", as shown below:

3. Click the "Edit" pop up "Edit String" dialog box, as shown below,

4. We fill in the command prompt (administrator) in the "Value data" field, and click "OK."

5. Next, right-click the right hand pane, "New" - "string value", as shown below,

6. After the establishment of good to the string value named icon, then right-click on our icon, select "Edit", will pop up

7. We enter C in the "Value data" at: \ Windows \ System32 \ shell32.dll, 24, and then click "OK."

8. Next we click runAsAdmin, select the right "New" - "item", as shown below

9. We give the new item named command, and then click to select the command, click the "default", select "Modify" Right on the right, as shown below,

10. Then the pop-up "Edit String" screen, enter cmd.exe / s / k pushd "% V" in "numerical data" then click on the "OK" button, as shown below,

Now you can return to the desktop or any other folder of a blank, right-click, right-click menu to see whether more of a "Command Prompt (Admin)."

The following describes the equivalent method:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]

@ = "Command Prompt (Admin)."  

"icon"="C:\\Windows\\System32\\shell32.dll,24"     

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]

@="cmd.exe /s /k pushd \"%V\""  

Simply copy the above commands into Notepad, Notepad and then save it as a .reg suffix Registry Format, and then double-click directly into the registry.

Guess you like

Origin blog.csdn.net/u012615439/article/details/88909109