Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

open terminal in current folder windows

Windows Registry Editor Version 5.00

; Command Prompt

[HKEY_CLASSES_ROOTDirectoryshell1MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="DirectoryContextMenusMenuCmd"

[HKEY_CLASSES_ROOTDirectoryackgroundshell1MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="DirectoryContextMenusMenuCmd"

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuCmdshellopen]
"MUIVerb"="Command Prompt"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuCmdshellopencommand]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuCmdshell
unas]
"MUIVerb"="Command Prompt Elevated"
"Icon"="cmd.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuCmdshell
unascommand]
@="cmd.exe /s /k pushd "%V""


; PowerShell

[HKEY_CLASSES_ROOTDirectoryshell2MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="DirectoryContextMenusMenuPowerShell"

[HKEY_CLASSES_ROOTDirectoryackgroundshell2MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="DirectoryContextMenusMenuPowerShell"

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuPowerShellshellopen]
"MUIVerb"="PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuPowerShellshellopencommand]
@="powershell.exe -noexit -command Set-Location '%V'"

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuPowerShellshell
unas]
"MUIVerb"="PowerShell Elevated"
"Icon"="powershell.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOTDirectoryContextMenusMenuPowerShellshell
unascommand]
@="powershell.exe -noexit -command Set-Location '%V'"


; Ensure OS Entries are on the Extended Menu (Shift-Right Click)

[HKEY_CLASSES_ROOTDirectoryshellcmd]
"Extended"=""

[HKEY_CLASSES_ROOTDirectoryackgroundshellcmd]
"Extended"=""

[HKEY_CLASSES_ROOTDirectoryshellPowershell]
"Extended"=""

[HKEY_CLASSES_ROOTDirectoryackgroundshellPowershell]
"Extended"=""
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #open #terminal #current #folder #windows
ADD COMMENT
Topic
Name
1+5 =