Location:
State:
Carrier
Country
Status

ShiftCmdHere


Hi,
since the days of Windows NT, I use a tool that I have derived from Windows Power tool CmdHere.
For Vista I have CmdHere expanded to open CMD as admin and modified to operate with shift key. The tool can be installed via context menu and uninstalled via Control Panel. It makes sense to deactivate the entry by default contained in the context menu. This can be done by ShellMenuView. ShellMenuView can be found at

After some testing I realize it's suitable for Windows 10 also.
I think that this could be a contribution to the tutorials.

ShiftCmdHere.inf:
-------------------------
[version]
signature="$CHICAGO$"

[ShiftCmdHereInstall]
CopyFiles = ShiftCmdHere.Files.Inf
AddReg = ShiftCmdHere.Reg

[DefaultInstall]
CopyFiles = ShiftCmdHere.Files.Inf
AddReg = ShiftCmdHere.Reg

[DefaultUnInstall]
DelFiles = ShiftCmdHere.Files.Inf
DelReg = ShiftCmdHere.DelReg

[SourceDisksNames]
55="CMD Here","",1

[SourceDisksFiles]
ShiftCmdHere.INF=55

[DestinationDirs]
ShiftCmdHere.Files.Inf = 17

[ShiftCmdHere.Files.Inf]
ShiftCmdHere.INF

[ShiftCmdHere.Reg]
HKLM,%UDHERE%,DisplayName,,"%ShiftCmdHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%ShiftCmdHere.inf"

HKCR,*Shell unas,,,"%ShiftCmdHereAccel%"
HKCR,*Shell unas,Extended
HKCR,*Shell unascommand,,,"cmd.exe /k pushd ""%1.."""

HKCR,DirectoryShell unas,,,"%ShiftCmdHereAcce2%"
HKCR,DirectoryShell unas,Extended
HKCR,DirectoryShell unascommand,,,"cmd.exe /k pushd ""%1"""

HKCR,DriveShell unas,,,"%ShiftCmdHereAcce2%"
HKCR,DriveShell unas,Extended
HKCR,DriveShell unascommand,,,"cmd.exe /k pushd ""%1"""

HKCR,*Shell un,,,"%ShiftCmdHereAcce3%"
HKCR,*Shell un,Extended
HKCR,*Shell uncommand,,,"cmd.exe /k pushd ""%1.."""

HKCR,DirectoryShell un,,,"%ShiftCmdHereAcce4%"
HKCR,DirectoryShell un,Extended
HKCR,DirectoryShell uncommand,,,"cmd.exe /k pushd ""%1"""

HKCR,DriveShell un,,,"%ShiftCmdHereAcce4%"
HKCR,DriveShell un,Extended
HKCR,DriveShell uncommand,,,"cmd.exe /k pushd ""%1"""

[ShiftCmdHere.DelReg]
HKLM,%UDHERE%
HKCR,*Shell unas
HKCR,DirectoryShell unas
HKCR,DriveShell unas

HKCR,*Shell un
HKCR,DirectoryShell un
HKCR,DriveShell un

[Strings]
ShiftCmdHereName="CMD Here (Uninstall only)"

ShiftCmdHereAccel="CMD in Current Folder as Admin"
ShiftCmdHereAcce2="CMD Here as Admin"

ShiftCmdHereAcce3="CMD in Current Folder"
ShiftCmdHereAcce4="CMD Here"
UDHERE="SoftwareMicrosoftWindowsCurrentVersionUninstallShiftCmdHere"
-------------------------

Chris

Nice tool but I cannot see why I should edit my registry manually to do something I can natively do directly from the Explorer? Browse to any folder, click File and open the Command Prompt.


ShiftCmdHere