Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TCMD's current directory?

May
12,834
163
Is there a built-in way for TCC to get/set the CWD of it's host TCMD?
In another thread, JimBrandley had problems because the debugger, when started from the TCMD menu, wasn't starting where he wanted/expected. I suppose that might always be the case.
I wrote a plugin to get/set a host TCMD's CWD, but it's rather overkill (injecting data and code and running a remote thread).
Perhaps a future TCC might include this capability, or at least it might be built into TakeCommandIPC (to make it a little easier for a plugin to do it).

Good idea ... bad idea?
 
TCMD's CWD doesn't change with _TCFOLDER (i.e., as you navigate the lists). Below, v:\ is TCMD's startup folder. With my plugin (TCCD) it's seen to be TCMD's CWD. After navigating in the view windows, v:\ remains TCMD's CWD.
Code:
v:\> tccd
v:\

v:\> rem navigate in the list/folder views

v:\> echo %_tcfolder
H:\4NTLogs

v:\> tccd
v:\
 

Similar threads

Back
Top