starting TC with a given set of tabs in L and R

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

starting TC with a given set of tabs in L and R

Post by *jmwap »

Hi,

I am trying to do this: open TC with for example 3 tabs in the R (r1, r2,r3) and 2 on the L (l1, l2).

I am looking at the commandline info and I see some params that would help but not sure.

/R or /L: I am using this when I pass a single dir, but can they recieve more than one path, in which format? Tried /R=r1,r2,r3 and only one dir is open in a tab, not all 3.

I would like to open TC with only those 5 tabs in total, if when last time I exited I had 10 tabs, I would like those to be removed.

Is this possible? Ideally via command line params or else with some ahk?

thanks
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

You could use the /O /T ... start parameters.

A more convenient way (imho) would be to redirect the responsible sections of the wincmd.ini into a separate ini file.

Code: Select all

[left]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
[lefttabs]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
[right]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
[righttabs]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
Now can make a backup of your tab config (wincmd_Tabs.ini) and restore it before every TC start with a batch.

Code: Select all

copy /y wincmd_Tabs.bak wincmd_Tabs.ini
start TotalCmd.exe
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

[quote="ZoSTeR"]You could use the /O /T ... start parameters.

Code: Select all

those I am alraedy using but i cannot open more than one new, and i cannot get rid of older tabs

[quote="ZoSTeR"]A more convenient way (imho) would be to redirect the responsible sections of the wincmd.ini into a separate ini file.
[code][left]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
[lefttabs]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
[right]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
[righttabs]
RedirectSection = %Commander_Path%\wincmd_Tabs.ini
Now can make a backup of your tab config (wincmd_Tabs.ini) and restore it before every TC start with a batch.

Code: Select all

copy /y wincmd_Tabs.bak wincmd_Tabs.ini
start TotalCmd.exe
[/quote]
ok, I see how that could work, I would prefer a commandline solution but I'll experiment with this

thanks
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

jmwap, you may use OPENTABS internal command in following way: create user-command that uses OPENTABS to load tabs from specific tab file (e.g. placed in temp folder), then use simple batch that creates that file and asks TC to execute that user-command. E.g. using TCFS2:

Code: Select all

copy my_tabs_file.tab "%TEMP%\tc_tabs.tab"
TCFS2 /ef tem(em_OpenTabsFromTemp)
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

MVV wrote:jmwap, you may use OPENTABS internal command in following way: create user-command that uses OPENTABS to load tabs from specific tab file (e.g. placed in temp folder), then use simple batch that creates that file and asks TC to execute that user-command. E.g. using TCFS2:

Code: Select all

copy my_tabs_file.tab "%TEMP%\tc_tabs.tab"
TCFS2 /ef tem(em_OpenTabsFromTemp)
thanks MVV
that looks more promising!! I have created a tab file from my current TC and was going to customize it, is there any doc on what [inactivetabs] and [activetabs] mean and the options etc?
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

ok I think [activetabs] and [inactivetabs] are just L and R but depending which one is active so are named.

But I'm trying to find out what the x_options values mean. I need to know cause I will generate my .tab file externally so I want to configure it properly to use it in TC later.

1_path=C:\\example\abc\
1_options=1|3|1|0|0|0|0

I have not found any details on what those options mean, anyone knows?

thanks
User avatar
chandragor
Member
Member
Posts: 128
Joined: 2005-06-01, 10:10 UTC
Location: Italy

Post by *chandragor »

Happy owner of license #12422 since 1997
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

chandragor wrote:Go here:

http://www.ghisler.ch/board/viewtopic.php?t=7757

Greetings :)
thanks!!!
Post Reply