How to? activate tab with same directory in command line

Mar 9, 2012

is it possible to call

"C:\Program Files\JPSoft\TCMD13\tcmd.exe" /D "d:\somedir\another" /T TCC

so that if tcmd is already running and one of the tabs already on d:\somedir\another is activated rather than open a new one?

thanks for any pointers or feedback


Scott Mintz
May 20, 2008
Solon, OH, USA

You could create your own "IPC" using the volatile registry. You could use a post_exec alias and send %_cwd to a volatile env variable. Then in your tcstart file check if there is a match, activate that window, and exit.

I don't have access to my pc to test any of that this week. I'm using an iPad to stay up to date on my emails. But Charles or Vincent might be willing to try something.



Scott Mintz
May 20, 2008
Solon, OH, USA
I was thinking something along the lines of
Set /v TCC_%_pid=%_cwd


Do p in /p set /v TCC_ (if %_cwd==%p activate... Yada Yada)
Mar 9, 2012
looks interesting and can open new possibilities for me. i will have a go and watch this thread again.

thanks scott
Similar threads
Thread starter Title Forum Replies Date
vefatica Tray min'd TCMD and ACTIVATE Support 6
A v25 BC break in WINDOW and ACTIVATE Support 12
D activate /max fortnite Support 6
A Inconsistent @WINPOS // ACTIVATE /POS= behavior Support 0
Jay Sage Change in Behavior of Activate Command Support 4
Jay Sage Failure of ACTIVATE to Set a Window Position Support 3
vefatica WAD More on ACTIVATE Support 4
nickles activate "..." hide hides the foremost window Support 3
D ACTIVATE doesn't find windows Support 7
dcantor Strange status in ACTIVATE command Support 0
Stefano Piccardi TCC ACTIVATE error Support 9
vefatica Tab (^t) in @FILEWRITE's text Support 2
D TCC tab detaching & restarting Support 3
Joe Caverly Changing the TAB key Support 10
fpefpe bash.exe as a tab Support 0
C How to? Mouse support in WSL when in Take Command Tab Support 2
P How to enable \ with tab completion Support 4
Joe Caverly DrawVLine results different in TCMD tab and detached TCC Support 11
Joe Caverly Tab from clipboard Support 6
Joe Caverly Clone a TCC Tab Support 9
R New Cloud Storage Tab in TCC options causing problems Support 0
CWBillow PowerShell tab as Admin Support 2
vefatica TYPE resets console tab settings Support 14
CWBillow TCMD PowerShell Tab elevated Support 6
CWBillow Take Command tab as PowerShell Support 3
Fross Tab Question Support 6
CWBillow TCMD Tab Defs Support 4
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
Emilio III TCMD Tab titles on Insider Windows Support 2
P Run as Admin tab in non-elevated Take Command session? Support 9
CWBillow Powershell tab in TCMD? Support 2
Phileosophos Startup tab layout Support 2
M How to? How to set a default TITLE for newly opened tab? Support 2
R How to? Change TCMD tab font size in window menu Support 3
D Get tab position and size Support 6
C Running PowerShell_ISE in a Tab Support 7
D How cut in TCC tab window Support 5
C How to? run a BTM in elevated, inv tcc tab window Support 9
D Take Command tab only uses half of window Support 1
rps Tab clone problem Support 2
C MONITOR commands alter tab title when triggered Support 0
D Tab completion differences with cmd.exe Support 3
H lua Causes Take Command Tab to Exit Support 5
vefatica Tab completion? Support 4
D How to? How to show variables expanded in the log tab Support 3
I tab completion with directory commands Support 7
R Fixed v17.0.54 Tab->COMSPEC Dialog Box Issue Support 2
vefatica Fixed Crash removing toolbar tab Support 1
I v16 Spawning a PowerShell tab Support 3
Jay Sage Getting Quote Characters into a Toolbar Tab Support 12

Similar threads