Reghack: DosHere, but on files too!

      No Comments on Reghack: DosHere, but on files too!

Annoying: You want a command shell, but there is no folder in view in the Windows Explorer, just the files in the folder you want the shell to start in.
This is a modified version of the DosHere.reg file that allows just that by right-clicking on any file system object:

 @="Dos&Here (*)"
 @="cmd.exe /k cd /D %L"
 @="Dos&Here (Folder)"
 @="cmd.exe /k cd /D %L"

Or, in commands:

reg add HKCR*ShellDosHere /ve /t REG_SZ /d "Dos&Here (*)"
reg add HKCR*ShellDosHerecommand /ve /t REG_SZ /d "cmd.exe /k cd /D %L"
reg add HKCRFolderShellDosHere /ve /t REG_SZ /d "Dos&Here (Folder)"
reg add HKCRFolderShellDosHerecommand /ve /t REG_SZ /d "cmd.exe /k cd /D %L"

To remove this again, issue these commands:

reg delete HKCR*ShellDosHere
reg delete HKCRFolderShellDosHere