1.    06 Oct 2015 #1
    Join Date : Jul 2015
    Posts : 8
    Windows 10 Pro 64bit

    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.
      My ComputerSystem Spec
  2.    06 Oct 2015 #2
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 13,109
    Windows 10 Pro

    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.

    Click image for larger version. 

Name:	2015_10_06_16_51_131.png 
Views:	4 
Size:	136.1 KB 
ID:	41401
      My ComputerSystem Spec

 

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 01:35.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums