can i save and switch between several preferences?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
giulia
Senior Member
Senior Member
Posts: 336
Joined: 2013-09-14, 05:33 UTC
Location: Europe

can i save and switch between several preferences?

Post by *giulia »

Hi

i have total commander installed and the same version portable for my usb stick

is there a way to save different preferences and switch between them?

for example icon size , font size and so on

thanks
love Total Commander , best file manager ever made
seb-
Senior Member
Senior Member
Posts: 276
Joined: 2011-11-15, 06:14 UTC
Location: DE\BN - only part time TC user after switching to Linux ;)

Post by *seb- »

There is a commandline parameter for the ini file that shall be used as configuration. It should be described in the help file.

Hth
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

To be more specific: Use different ini files with names you like and start TC with the needed one.

You may set read-only flag to inhibit modifications.
#5767 Personal license
giulia
Senior Member
Senior Member
Posts: 336
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Post by *giulia »

sqa_wizard wrote:To be more specific: Use different ini files with names you like and start TC with the needed one.

You may set read-only flag to inhibit modifications.
hi
yes have different ini files , and select which preference load
could be done?
love Total Commander , best file manager ever made
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Example LaunchTC.cmd batch choose different INI file

Post by *Stefan2 »

giulia wrote:yes have different ini files , and select which preference load
could be done?

Not on default, only with work around, e.g.

- add some button to TC to start another TC with another INI

or

- start TC via a DOS batch, where you can provide
a list to choose which config to launch, like:
[face=timesnewroman]Choose TC Config
Press A - launch with Work.ini
Press B - launch with Alternative.ini
Press C - launch with temp.ini[/face]

- - -

Example LaunchTC.cmd

Code: Select all

@ECHO OFF
REM Put this _LaunchTC.cmd in your TC folder and use this to launch TC.
REM Stefan, 2015-06-19, v0.001
CD %~dp0
REM =============================================================
REM GotoMenu=1 means: Keep the Menu open untill X is pressed.
REM GotoMenu=0 means: Close the Menu on succesfully launching TC.
SET GotoMenu=1
REM =============================================================

:MENU
REM = = = = = = = Prompt user with the menu:
CLS
ECHO Working Dir: %CD%
ECHO.
ECHO ...............................................
ECHO PRESS A, B OR C to select your task, or X to EXIT.
ECHO ...............................................
ECHO.
ECHO A - launch with wincmd.ini
ECHO B - launch with Alternative.ini
ECHO C - launch with temp.ini
ECHO X - EXIT
ECHO.

REM = = = = = = = Prompt user with request to pick an option:
ECHO.%wrong%
SET /P M=Type A, B, C, or X then press ENTER:
IF %M%==A GOTO SubA
IF %M%==B GOTO SubB
IF %M%==C GOTO SubC
IF %M%==X GOTO EOF
IF %M%==x GOTO EOF
SET wrong=Last input was wrong: %M%
GOTO MENU

REM = = = = = = = Settings for option A, if user pressed upper case "A"
:SubA
SET tcini=
Call :LaunchTools
start TOTALCMD.EXE 
IF [%GotoMenu%]==[1] GOTO MENU
GOTO EOF

REM = = = = = = = Settings for option B
:SubB
SET tcini=C:\totalcmd\wincmd_work.ini
start TOTALCMD.EXE /I="%tcini%"
IF [%GotoMenu%]==[1] GOTO MENU
GOTO EOF

REM = = = = = = =  Settings for option C
:SubC
SET tcini=%TEMP%\TC-temporare-Fresh.ini
start TOTALCMD.EXE /I="%tcini%"
IF [%GotoMenu%]==[1] GOTO MENU
GOTO EOF

REM = = = = = = =  Settings for your option 
:SubD
SET tcini=
start TOTALCMD.EXE /I="%tcini%"
IF [%GotoMenu%]==[1] GOTO MENU
GOTO EOF

REM =============================================================
:LaunchTools
REM SET MyFunnyVar=
REM start "" C:\Tools\abc.exe
REM other things here...
ECHO sub LaunchTools executed, return to caller. (only visible if CLS above is removed)
REM return to caller. 
REM =============================================================
REM The End. The only end, my friend.

 
giulia
Senior Member
Senior Member
Posts: 336
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: Example LaunchTC.cmd batch choose different INI file

Post by *giulia »

Stefan2 wrote:
giulia wrote:yes have different ini files , and select which preference load
could be done?

Not on default, only with work around, e.g.

- add some button to TC to start another TC with another INI

or

- start TC via a DOS batch, where you can provide
a list to choose which config to launch, like:
[face=timesnewroman]Choose TC Config
Press A - launch with Work.ini
Press B - launch with Alternative.ini
Press C - launch with temp.ini[/face]

- - -

Example LaunchTC.cmd

 
thanks
would be cool a plugin to select several preferences
love Total Commander , best file manager ever made
Post Reply