Opentabs (tab file) using command line (TCStartWithCommand)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Opentabs (tab file) using command line (TCStartWithCommand)

Post by *dragonetti »

I tried to find out how to open Total Commander with an earlier saved tab file through commandline.

I read in this topic it is not possible:
http://ghisler.ch/board/viewtopic.php?t=20248&view=previous

But it is an old topic, is there any way now to do it through command line?

An alternative method was to use: TCStartWithCommand, I read something about it here:
http://ghisler.ch/board/viewtopic.php?p=141599

I downloaded it and an got it work to an extend that it boots Total Commnder. But I can not get the "Commands with parameter" >> "OPENTABS" working. The readme file is german so I could have misread something.

I also looked in the helpfile of Total Commander in the 'Command line' section, but it has no reference to the internal OPENTABS command.


I did a search on 'TCStartWithCommand' on this forum but it doesn't yield many results.

Is it possible? Could someone provide a correct syntax to open a tabs file located in:

edit:
Left pane: f:\PortableApps\totalcmd\_TABS\test_left.tab
Right pane: f:\PortableApps\totalcmd\_TABS\test_right.tab
(active panel: left)
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Opentabs (tab file) using command line (TCStartWithComma

Post by *white »

dragonetti wrote:I also looked in the helpfile of Total Commander in the 'Command line' section, but it has no reference to the internal OPENTABS command.
When looking in the helpfile and having trouble to find something, I recommend to use the search function of help ;-)
Hint: Also search for OPENTABSL or OPENTABSR

Hint2: Try the forum search too ;-)
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

OPENTABSL and OPENTABSL only seems usable within Total commander. I need a solution that is usable outside totalcommander.
When I am in windows commandline and then use something like
totalcmd.exe [/o] [/n] [Drive1:\Directory1 [Drive2:\Directory2]] [/i=name.ini] [/f=ftpname.ini]
But with the option to load earlier created tabfiles.
New internal commands with parameters SELECTFILES, OPENTABSL and OPENTABSR, e.g. for the button bar
I did a google search, tcmd forum search and tcmd helpfile search (using the search tab) but it didn't yield any desired results. Keywords used:
OPENTABSL, OPENTABS , OPENTABSR in with and without 'Total Commander' , and 'total commander open tabs command line')

The opentabs search in the totalcommander helpfile yields 2 results:
- Dialogbox: Configuration: Change button bar
- Foldertabs

That's what I meant with: "...but I couldn't find anything..."

Neither mention using the commandline to open a pre-saved .tab file
Last edited by dragonetti on 2014-02-25, 23:23 UTC, edited 3 times in total.
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

dragonetti wrote:And I did use the helpfile in totalcommander, but I couldn't dind anything I used "opentabs" as a keyword.
It does when I do it....
dragonetti wrote:Thank you again for your assistance!
You're welcome.
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

Update: it is not possible at the moment.
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

dragonetti wrote:Update: it is not possible at the moment.
Exactly what isn't?
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

I do not know how to explain it any clearer than I already did above.

The goal was to start totalcommander through commandline, but with a saved tabset. (a tabset file ends with a .tab extension).

The commandline options are passed like this:
totalcmd.exe [/o] [/n] [Drive1:\Directory1 [Drive2:\Directory2]] [/i=name.ini] [/f=ftpname.ini]
If you want to boot, through commandline you can use the described switches, for example:
totalcmd.exe /R=d:\data right window: d:\data
This boots totalcommander with right window: d:\data

What I wanted to know if it was possible to also open previously saved tabset (.tab file) using the commandline.

This is not possible at the moment.
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

dragonetti wrote:What I wanted to know if it was possible to also open previously saved tabset (.tab file) using the commandline.
There is no command line parameter yet to do that. It has been requested many times. Some examples:
http://ghisler.ch/board/viewtopic.php?t=21897
http://ghisler.ch/board/viewtopic.php?t=14262
http://ghisler.ch/board/viewtopic.php?t=21576

But I think there are workarounds. See for example here. You could use Redirectsection and environment variables or write sections in a batch file.
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

Thank you for those links.
Post Reply