How to? activate tab with same directory in command line

Mar 9, 2012
22
0
hi

is it possible to call

Code:
"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
regards
ehab
 

samintz

Scott Mintz
May 20, 2008
1,324
12
Solon, OH, USA
Ehab,

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
 

samintz

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

And

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

thanks scott