Windows Desktop and folder right-click Open command-line window
1. Press SHIFT first, then right-click to run cmd (not Administrator privileges)
I've added the right button and the system has PS instead of CMD, so it's "open the Powershell window here
2. Instead of shift, in the blank space in the desktop and folder, click on the menu that appears with the right button and "Run command line with administrator privileges" Instead of the folder icon alone.
Save the following code as a '. reg ' file and then open the Allow to run and import the registry is OK.
Windows Registry Editor Version 5.00#Right-click on the folder [HKEY_CLASSES_ROOT\folder\Shell\cmd]@= "Open command line CMD here" "Icon" = "shell32.dll,24"[HKEY_CLASSES_ROOT\folder\Shell\cmd\Command]@= "cmd.exe/k cd%1" #Right-click inside the folder and on the desktop [HKEY_CLASSES_ROOT\directory\background\Shell\cmd2]@= "Open admin CMD Here" "Icon" = "shell32.dll,24"[HKEY_CLASSES_ROOT\directory\background\Shell\cmd2\Command]@= "cmd.exe/s/k pushd \"%v\ ""[HKEY_CLASSES_ROOT\directory\background\Shell\runas]@= "Open admin CMD Here" "Icon" = "shell32.dll,24"[HKEY_CLASSES_ROOT\directory\background\Shell\runas\Command]@= "cmd.exe/s/k pushd \"%v\ ""
Right-click on the folder:
The space in the desktop and folder, right-click:
Windows Desktop and folder right-click Open command-line window