Open Command Prompt here, Open PowerShell here, Open Bash Shell here – (with Elevated privileges)
save these in a .reg file and open to apply.
1. Open Command Prompt and PowerShell here – registry file
Windows Registry Editor Version 5.00 ; Command Prompt [HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd] "MUIVerb"="Command Prompts" "Icon"="cmd.exe" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" [HKEY_CLASSES_ROOT\Directory\background\shell\01MenuCmd] "MUIVerb"="Command Prompts" "Icon"="cmd.exe" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open] "MUIVerb"="Command Prompt" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command] @="cmd.exe /s /k pushd \"%V\"" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas] "MUIVerb"="Command Prompt Elevated" "Icon"="cmd.exe" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" ; PowerShell [HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell] "MUIVerb"="PowerShell Prompts" "Icon"="powershell.exe" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell" [HKEY_CLASSES_ROOT\Directory\background\shell\02MenuPowerShell] "MUIVerb"="PowerShell Prompts" "Icon"="powershell.exe" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open] "MUIVerb"="PowerShell" "Icon"="powershell.exe" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command] @="powershell.exe -noexit -command Set-Location '%V'" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas] "MUIVerb"="PowerShell Elevated" "Icon"="powershell.exe" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command] @="powershell.exe -noexit -command Set-Location '%V'" ; Ensure OS Entries are on the Extended Menu (Shift-Right Click) [HKEY_CLASSES_ROOT\Directory\shell\cmd] "Extended"="" [HKEY_CLASSES_ROOT\Directory\background\shell\cmd] "Extended"="" [HKEY_CLASSES_ROOT\Directory\shell\Powershell] "Extended"="" [HKEY_CLASSES_ROOT\Directory\background\shell\Powershell] "Extended"=""
2. Open bash here – registry file
Windows Registry Editor Version 5.00 ; Bash Prompt [HKEY_CLASSES_ROOT\Directory\shell\MenuBash] "MUIVerb"="Bash Prompts" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuBash" [HKEY_CLASSES_ROOT\Directory\background\shell\MenuBash] "MUIVerb"="Bash Prompts" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuBash" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuBash\shell\open] "MUIVerb"="Bash Prompt" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuBash\shell\open\command] @="cmd.exe /c pushd \"%V\" && bash.exe" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuBash\shell\runas] "MUIVerb"="Bash Prompt Elevated" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuBash\shell\runas\command] @="cmd.exe /c pushd \"%V\" && bash.exe"