It looks like you're trying to open a TCC window as admin. Shouldn't that be TCC.EXE instead of TCMD.EXE? And you would use CDD to change to the desired location.Code:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\RunAs] @="TCMD prompt here (&Admin)" [HKEY_CLASSES_ROOT\Directory\shell\RunAs\command] @="\"C:\\Program Files\\JPSoft\\TCMD19_x64\\tcmd.exe\" /D \"%L\""
I think there's a fundamental misunderstanding here -- the "TCMD /D" startup option has nothing to do with the "CD /D" command. "TCMD /D" tells TCMD to start the Explorer window in the specified directory. It doesn't affect the TCC console windows.I prefer to use TCMD and not TCC.
It allows me to right click on a directory and select open with TCMD ( I have one as an admin and another as a non- elevated user).
What I would like is way to log the
CD /D "Directory path wanted"
TCC only inherits it if (1) it doesn't override it in TCMD.INI, and (2) it doesn't override it in TCSTART. Regardless, it still never calls CDD /D, so there's no TCC involvement or potential for logging.On the contrary, if I go to Start\Run and issue "g:\tc19\tcmd.exe /d <place>" my one and only default TCC starts in <place>. TCMD's COMSPEC is simply "g:\tc19\tcc.exe" and my TCStart.btm does not change the CWD. It would seem TCMD sets its CWD to the "/D" spec and TCC inherits it.