Windows Registry Editor Version 5.00
;;------------------------------------------------;;
;; CMD HERE - Desktop, Directory, Drive, Background ;;
;;------------------------------------------------;;
[HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt]
"Icon"="cmd.exe,0"
"MUIVerb"="CMD Here"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd1]
"MUIVerb"="Open here CMD"
"Icon"="cmd.exe,0"
[HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd1\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd2]
"MUIVerb"="Open CMD as administrator"
"HasLUAShield"=""
"Icon"="cmd.exe,0"
[HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd2\command]
@="cmd /c echo|set/p=\"%V\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
;;----------------------------------------;;
;; PowerShell HERE - Desktop, Directory, Drive ;;
;;----------------------------------------;;
[HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell]
"Icon"="powershell.exe,0"
"MUIVerb"="PowerShell Here"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps1]
"MUIVerb"="Open here PowerShell"
"Icon"="powershell.exe,0"
[HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps1\command]
@="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
[HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps2]
"MUIVerb"="Open PowerShell as administrator"
"HasLUAShield"=""
"Icon"="powershell.exe,0"
[HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps2\command]
@="powershell -NoP -W 1 -NoI -NoL -Command Start-Process 'C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe' -ArgumentList '-NoExit -Command Set-Location -LiteralPath %V' -Verb RunAs"
;;------------------------------------------------;;
;; CMD & PowerShell for Directory and Background ;;
;;------------------------------------------------;;
[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt]
"Icon"="cmd.exe,0"
"MUIVerb"="CMD Here"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd1]
"MUIVerb"="Open here CMD"
"Icon"="cmd.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd1\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd2]
"MUIVerb"="Open CMD as administrator"
"HasLUAShield"=""
"Icon"="cmd.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd2\command]
@="cmd /c echo|set/p=\"%L\"|powershell -NoP -W 1 -NoI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell]
"Icon"="powershell.exe,0"
"MUIVerb"="PowerShell Here"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps1]
"MUIVerb"="Open here PowerShell"
"Icon"="powershell.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps1\command]
@="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps2]
"MUIVerb"="Open PowerShell as administrator"
"HasLUAShield"=""
"Icon"="powershell.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps2\command]
@="powershell -NoP -W 1 -NoI -NoL -Command Start-Process 'C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe' -ArgumentList '-NoExit -Command Set-Location -LiteralPath %V' -Verb RunAs"
;;----------------------------------------;;
;; REMOVE OLD CMD FROM LIBRARY FOLDER ;;
;;----------------------------------------;;
[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\CommandPrompt]