In Windows 7 I used the registry to be able to open a command prompt window rooted at a folder using the method given by Honeycutt in Microsoft Windows XP Registry Guide
on page 98. The procedure is as follows:
- In HKCR\Directory\shell, create the subkey cmdhere
- In HKCR\Directory\shell\cmdhere, set the default value to CMD Prompt Here
- In HKCR\Directory\shell\cmdhere, create the subkey command
- In HKCR\Directory\shell\cmdhere\command, set the default value to C:\Windows\Sustem32\cmd.exe /k cd "%1"
This is repeated in HKCR\Drive. The result is a menu item "CMD Prompt Here" which appears when right clicking a folder. Clicking the menu item opens the command prompt window.
In Windows 10 this opens the window but with the error: "The system cannot find the path specified." and the window opens int the C:\Windows\System32 directory.
I would like to know how to correct this and to use the /t:fg parameter to set the foreground and background colors. (See https://technet.microsoft.com/en-us/library/bb490880.aspx
. ) Using the run capability on the start menu, I have tried every permutation of cmd.exe /k cd "D:\" /t:fg that I can think of (replacing f and g with the correct numbers, including the cd in the quotes, etc.) and always get the same result. Help would be greatly appreciated.