New
#1
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 http://www.nirsoft.net
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\runas,,,"%ShiftCmdHereAccel%"
HKCR,*\Shell\runas,Extended
HKCR,*\Shell\runas\command,,,"cmd.exe /k pushd ""%1\.."""
HKCR,Directory\Shell\runas,,,"%ShiftCmdHereAcce2%"
HKCR,Directory\Shell\runas,Extended
HKCR,Directory\Shell\runas\command,,,"cmd.exe /k pushd ""%1"""
HKCR,Drive\Shell\runas,,,"%ShiftCmdHereAcce2%"
HKCR,Drive\Shell\runas,Extended
HKCR,Drive\Shell\runas\command,,,"cmd.exe /k pushd ""%1"""
HKCR,*\Shell\run,,,"%ShiftCmdHereAcce3%"
HKCR,*\Shell\run,Extended
HKCR,*\Shell\run\command,,,"cmd.exe /k pushd ""%1\.."""
HKCR,Directory\Shell\run,,,"%ShiftCmdHereAcce4%"
HKCR,Directory\Shell\run,Extended
HKCR,Directory\Shell\run\command,,,"cmd.exe /k pushd ""%1"""
HKCR,Drive\Shell\run,,,"%ShiftCmdHereAcce4%"
HKCR,Drive\Shell\run,Extended
HKCR,Drive\Shell\run\command,,,"cmd.exe /k pushd ""%1"""
[ShiftCmdHere.DelReg]
HKLM,%UDHERE%
HKCR,*\Shell\runas
HKCR,Directory\Shell\runas
HKCR,Drive\Shell\runas
HKCR,*\Shell\run
HKCR,Directory\Shell\run
HKCR,Drive\Shell\run
[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="Software\Microsoft\Windows\CurrentVersion\Uninstall\ShiftCmdHere"
Chris
Last edited by ChrisRaabe; 06 Oct 2015 at 11:58.