How can I tell Total Commander where to find total.ini?

English support forum

Moderators: Hacker, petermad, Stefan2, white

pilgrim
New Member
New Member
Posts: 1
Joined: 2004-05-26, 16:27 UTC

How can I tell Total Commander where to find total.ini?

Post by *pilgrim »

Hi, I constantly work on public PC's with write access to the Windows directory restricted. Now, I have a ini file with all the settings the way I want them, but TC simply has to have a look in the Windows dir.

Is there a command line paramater that I can use to tell TC to use "g:\tc\total.ini" or someting like that?

Thank you very much! :D
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

I opened the help for TC and found this under 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.
I switched to Linux, bye and thanks for all the fish!
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

There are other ways also (to avoid using cmd line parameters):

When you install TC (not just copy TC files extracted from installer), it asks you if you want to put INI files to some other place.

If you already installed TC you can use IniReloc tool to change INI files location (find this tool here, here or here).

Or just save this:

Code: Select all

REGEDIT4
[HKEY_CURRENT_USER\Software\Ghisler\Total Commander]
"IniFileName"="g:\\tc\\total.ini"
"FtpIniName"="g:\\tc\\ftp.ini"
"InstallDir"="g:\\tc"
as "InstallTCINIFiles.reg" file and run it.
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Or you could always use the INIReloc tool :) :

http://www.ghisler.com/tools.htm#other

you can find it under section Other useful addons
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Even better, you can find it in the posting above yours... ;)

Icfu
This account is for sale
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2pilgrim

Maybe you want to take a look a my little tool Launch TC. See my signature for details.
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 28-05-2004 13:00:10 +0000 Lefteous wrote:

L> Maybe you want to take a look a my little tool Launch TC.

BTW what are the advantages of your tool comparing e.g. with batch files I use to run Commander from my flash drive:

____________transmission_from_tc.bat______________[/face]

[face=terminal]@ECHO OFF
START totalcmd\TOTALCMD.EXE /N /I=.\wincmd.ini /F=.\wcx_ftp.ini
:END[/face]
[face=courier]_______________end_of_transmission________________

?[/face]
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Black Dog
LaunchTC is just a small gui application to launch Total Commander or any other application. You can use it instead of the runas commando too (RunAs=1).
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 14-06-2004 03:09:36 +0000 Lefteous wrote:

L> LaunchTC is just a small gui application to launch Total
L> Commander or any other application.


Thank you for answer. The GUI in my case is TAR or system "Run" dialog :).

L> You can use it instead of the runas commando too (RunAs=1).

Well, it looks like it works the same as my runas batch file:

__________transmission_from_runas_tc.bat___________[/face]

[face=terminal]@ECHO OFF
START RUNAS /NOPROFILE /USER:%1 "totalcmd\TOTALCMD.EXE /N /I=.\wincmd.ini /F=.\wcx_ftp.ini"
:END[/face]

[face=courier]_______________end_of_transmission________________

Has your tool user names history, BTW?[/face]
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Black Dog
Has your tool user names history, BTW?
No, but this is a nice idea.
BBB
Junior Member
Junior Member
Posts: 17
Joined: 2005-06-03, 06:21 UTC
Contact:

Post by *BBB »

put this inside your wincmd.ini (*.ini) file:

[user]
param1=/i=wincmd.ini /F=wcx_ftp.ini
path1=.


You can put %commander_path% for all the drive:/totalcmd/...

Have fun!
User avatar
Peled
Junior Member
Junior Member
Posts: 86
Joined: 2003-03-22, 05:43 UTC
Location: Israel

10Q

Post by *Peled »

Now I know..
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Post by *DarkRuleR »

Hi!

It should be great if TC searches for the .ini files in the current dir. first.
And the current dir. is the directory where totalcmd.exe is located.

This (should) would result in:

Start TC

1) Look for .ini files in the same dir. totalcmd.exe was started from.

if not then

2) Look if a command line is specified for the .ini files location.

if not then

3) Look in the registry for a the location of the .ini files.


This way you dont have to use a batch file to start TC if the config files are in the same dir. as totalcmd.exe

DR...
#106383 Windows 10 Pro 64-bit
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Please open the TC help file and search for "UseIniInProgramDir" wincmd.ini option...
This thread is older than my dead grandma, please let it rest in peace now.

Icfu
This account is for sale
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Post by *DarkRuleR »

Cool...

I'm gonna try that one!

Btw. Sorry to hear about your grandma.
:)
#106383 Windows 10 Pro 64-bit
Post Reply