Where does TC store the "Locked Directories" saved in Tabs?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
cappy2112
Junior Member
Junior Member
Posts: 6
Joined: 2007-08-17, 23:34 UTC

Where does TC store the "Locked Directories" saved in Tabs?

Post by *cappy2112 »

I usually save commonly-used directories as locked directories in Tabs.
However, when I copy wincmd.ini from one computer to another, these directories are never specified there.
So where are they saved? It's a pain to have to configure the same tabs on each computer.
Yes I've clicked "Save Settings"


The same goes for Mapped Network drives which show up on the Drive Button Bar, these are not saved in the ini file either.
I always have to recreate them on every computer.


thanks
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Where does TC store the "Locked Directories" saved in Tabs?

Post by *Gral »

All tabs are stored in [lefttabs] and [righttabs] sections.
Maybe you use, and don't remember, redirection for this sections?
What happens when you close and restart TC? Whether tabs are restored?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Where does TC store the "Locked Directories" saved in Tabs?

Post by *Stefan2 »

cappy2112 wrote: 2023-08-10, 18:20 UTC So where are they saved?

wincmd.ini
[righttabs]
1_path=C:\Windows\
1_options=1|0|0|0|0|0|0|



Check this out yourself:
- create a copy of your wincmd.ini
- lock an tab and try other options too
- (restart the TC ?)
- use "Files > Compare by content" to see the differences between "wincmd.ini" and the older "wincmd - Copy.ini"


 
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: Where does TC store the "Locked Directories" saved in Tabs?

Post by *tuska »

I use this setting in wincmd.ini - section [Configuration]:
TabDir=%COMMANDER_PATH%\TABs\
(e.g. C:\totalcmd = %COMMANDER_PATH% = is where the files TOTALCMD.EXE and/or TOTALCMD64.EXE are located)
To save the tabs I use this command in a button:
SAVETABS2L %COMMANDER_PATH%\TABs\STANDARD.tab
In the file "STANDARD.tab" there are the sections [activetabs] and [inactivetabs].
However, the sections [lefttabs] and [righttabs] are also present in the file "wincmd.ini".

Explanation (cm_CommandBrowser):
SAVETABS2L <filename>    Save tabs to .tab file, both sides (left=first)
Button with command:
OPENTABSL %COMMANDER_PATH%\TABs\STANDARD.tab
restores the saved tabs.

Explanation (cm_CommandBrowser):
OPENTABS <filename>    Open tabs from saved .tab file
F1 - Help:
OPENTABS tabfile.tab same, but replaces the current tabs with these new tabs.
To open tabs on the left/right side, append the character L or R to the command, respectively.
The aforementioned method "Tabs"-folder is good for creating tab sets for different topics.
cappy2112
Junior Member
Junior Member
Posts: 6
Joined: 2007-08-17, 23:34 UTC

Re: Where does TC store the "Locked Directories" saved in Tabs?

Post by *cappy2112 »

Gral wrote: 2023-08-10, 18:36 UTC All tabs are stored in [lefttabs] and [righttabs] sections.
Maybe you use, and don't remember, redirection for this sections?
What happens when you close and restart TC? Whether tabs are restored?
The tabs ARE restored on the current computer. But when I copy the ini file to another
computer and install TC, the tabs are not restored. The same directory structure exists
on both computers though.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Where does TC store the "Locked Directories" saved in Tabs?

Post by *Gral »

1. Check location of main INI file on FIRST computer - while TC is running - go to "Help" -" About Total Commander" - "Settings files:"
First line is location of main INI file.
2. Open this file and check whether exists section [lefttabs] [righttabs] or maybe redirection to another file.
3. Copy main INI file (and optionally redirected section if any exist) to SECOND computer.
4. Run TC on SECOND computer and check, the same way, location of main INI file.
If it is not the same file you just copied from the first machine you need to run TC with the appropriate command line options.
The same directory structure has nothing to do with it.
Post Reply