Portable Total commander Settings

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
beuvema
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-06, 00:23 UTC

Portable Total commander Settings

Post by *beuvema »

Hi TC lovers,

I use TC on more computers. At the moment I transfer my Key every time I switch PC. No problem so far! Now I want to make the settings portable too. \windows\wincmd.ini and wcx_ftp.ini
Are there more files I need to take with me? and is there a setting to control the location these files are looked for?

Grtz Beuvema
User avatar
Gral
Power Member
Power Member
Posts: 1473
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Look here : http://www.ghisler.ch/wiki/index.php/Backup

From TC help
4a - Command line parameters
/i=name.ini Use a different INI file name.ini instead of wincmd.ini to save settings (see also: INI file description).
/F=ftpname.ini Use a different INI file name.ini instead of wcx_ftp.ini to save settings for built-in FTP client.
Also you can download this tool https://plugins.ghisler.com/addons/inireloc.zip
User avatar
beuvema
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-06, 00:23 UTC

Post by *beuvema »

Thx for your quick response, I'll check it right way

Grtz Beuvema
User avatar
beuvema
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-06, 00:23 UTC

Post by *beuvema »

It works great,

only one thing, is it possible to have the key file read from the location the ini files are read from?

Grtz Beuvema
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

U should also crate %COMMANDER_PATH% system variable and make all plugins register with that instead real path. That way, all plugins will work on any location
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
beuvema
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-06, 00:23 UTC

Post by *beuvema »

Thx for your quick response majkinetor

I'am not sure what you mean exactly... with :
U should also crate %COMMANDER_PATH% system variable and make all plugins register with that instead real path. That way, all plugins will work on any location
hope you can clarify it a bit ;)

Grtz Beuvema
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

You could use the setting

[Configuration]
keypath=Any\location\you\would\like

in the wincmd.ini.

What majkinetor probably means is that, if you use the %Commander_path% variable to setup your plugins they will work on a portable TC version, too. e.g.

[ListerPlugins]
0=%COMMANDER_PATH%\plugins\WLX\SystemInfo.wlx

instead of

[ListerPlugins]
0=c:\totalcmd\plugins\WLX\SystemInfo.wlx


sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
beuvema
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-06, 00:23 UTC

Post by *beuvema »

Sheepdog wrote:You could use the setting

[Configuration]
keypath=Any\location\you\would\like

in the wincmd.ini.
This was the missing part :D
Thx, Beuvema.
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

[Configuration]
keypath=Any\location\you\would\like
I needed this so bad... I was too lasy to find it myself, since I always keep TC on the same path, but when I move around a little sometimes TC can't find the key.


thx Shipdog

2 beuvema
hope you can clarify it a bit
Shipdog already expalined. The best way is to use excelent fs plugin manager and to check "use commander path" variable.
Later, when U reinstall the system or move to another, just define mentioned environment variable to point to new path. U can even create batch script that will do that automaticaly

This is part of my script that handles this - you need MS setX.exe for this to work - which is executed in Utils folder. Utils contains Total Commander along with other goodies.

Code: Select all

  set UTILS=%CD%
  set X=%UTILS%\_Console\Rkit\SetX.exe 
  
  echo COMMANDER_PATH
  echo %UTILS%\Total Commander&echo.
  %X% COMMANDER_PATH "%UTILS%\Total Commander" -m
U will also set this in wincmd.ini under [config]
KeyPath=%COMMANDER_PATH%
InstallDir=%COMMANDER_PATH%

After this, if everything mentioned in this topic is set correctly, TC will work together with all plugins on any computer without installation (after U run this script)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

majkinetor wrote:
thx Shipdog
Would you mind to call me sheepdog ?

KeyPath=%COMMANDER_PATH%
That would be unnecessary.

from TC Help section 4.b wincmd.ini:
KeyPath= Path to the registration key (WITHOUT the file name!). As a default, Total Commander looks for the key in its own directory. Useful if key cannot be read over a LAN.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

SheepDog wrote:Would you mind to call me sheepdog ?
No, I don't mind.

thx SheepDog
Vil'yam Shekspir wrote: What's in a name?
O, be some other name!

that which we call a rose
By any other name would smell as sweet
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

And by THAT, I don't mean that you are a rose.... :)
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
Post Reply