How can I start TC with specific wincmd.ini automatically

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hiforrest
New Member
New Member
Posts: 1
Joined: 2008-10-15, 01:22 UTC

How can I start TC with specific wincmd.ini automatically

Post by *hiforrest »

I am using a portable edition TC, and the "wincmd.ini" is in TC's root directory on my own computer. Now I want to carry it with my U-disk to my office and run it on the U-disk. However, the directories are pretty different between the two computers. I would like to save specific settings for them seperately in two wincmd.ini files. i.e "wincmd_work.ini" and "wincmd_home.ini". How can I start TC with "wincmd_home.ini" at home and "wincmd_work" at work automaticlly? Any reply is appreciated.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2hiforrest
Take a look into Help file (4.a. Command line parameters) and the answer will be clear:

1. replace any strings to TC's path to %COMMANDER_PATH% in INI files,

2. create proper shortcuts (via Windows, batch files or special tools) for starting Total Commander with parameter:

/i=name.ini

where "name.ini" is your specific INI file.

PS For 2nd point I recommend some portable launchers (like PStart) for that step.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

Maybe I didn't unterstand the problem. I assume that all INI should be saved at TCs folder on U-stick e.g. E:\totalcmd and that the system variable %COMPUTERNAME% is set and different on both computers.

Then
E:\totalcmd\wincmd.ini could be contain:

Code: Select all

[Configuration]
UseIniInProgramDir=7
AlternateUserIni=wincmd_%COMPUTERNAME%.ini
RedirectSection=wincmd_%COMPUTERNAME%.ini
If only some sections of wincmd.ini should be different then remove "AlternateUserIni" and add "RedirectSection" to every section which should be redirected.

For further information please have a look at help section 4.b).
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I use LaunchTC by Lefteous for this purpose.
- It is portable (and starts TC portable)
- You can use different INI files
- run as different user, if required
#5767 Personal license
Post Reply