English support forum
Moderators: Hacker , petermad , Stefan2 , white
pilgrim
New Member
Posts: 1 Joined: 2004-05-26, 16:27 UTC
Post
by *pilgrim » 2004-05-26, 16:34 UTC
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!
SanskritFritz
Power Member
Posts: 3693 Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary
Post
by *SanskritFritz » 2004-05-26, 16:37 UTC
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!
Valentino
Power Member
Posts: 709 Joined: 2003-02-07, 00:21 UTC
Location: Ukraine
Post
by *Valentino » 2004-05-27, 13:09 UTC
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.
wanderer
Power Member
Posts: 1644 Joined: 2003-03-28, 14:35 UTC
Location: Sol
Post
by *wanderer » 2004-05-28, 10:38 UTC
Or you could always use the
INIReloc tool
:
http://www.ghisler.com/tools.htm#other
you can find it under section
Other useful addons
- W a n d e r e r -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
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
Posts: 6052 Joined: 2003-09-10, 18:33 UTC
Post
by *icfu » 2004-05-28, 10:54 UTC
Even better, you can find it in the posting above yours...
Icfu
This account is for sale
Lefteous
Power Member
Posts: 9537 Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:
Post
by *Lefteous » 2004-05-28, 11:00 UTC
2pilgrim
Maybe you want to take a look a my little tool Launch TC. See my signature for details.
Black Dog
Power Member
Posts: 1024 Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:
Post
by *Black Dog » 2004-05-30, 09:31 UTC
[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]
Lefteous
Power Member
Posts: 9537 Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:
Post
by *Lefteous » 2004-06-14, 01:09 UTC
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).
Black Dog
Power Member
Posts: 1024 Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:
Post
by *Black Dog » 2004-06-14, 11:26 UTC
[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]
Lefteous
Power Member
Posts: 9537 Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:
Post
by *Lefteous » 2004-06-14, 11:52 UTC
2
Black Dog
Has your tool user names history, BTW?
No, but this is a nice idea.
BBB
Junior Member
Posts: 17 Joined: 2005-06-03, 06:21 UTC
Contact:
Post
by *BBB » 2005-06-03, 06:34 UTC
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!
Peled
Junior Member
Posts: 86 Joined: 2003-03-22, 05:43 UTC
Location: Israel
Post
by *Peled » 2005-06-05, 17:01 UTC
Now I know..
DarkRuleR
Member
Posts: 190 Joined: 2003-02-20, 22:23 UTC
Location: Netherlands
Post
by *DarkRuleR » 2005-06-07, 08:26 UTC
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
Posts: 6052 Joined: 2003-09-10, 18:33 UTC
Post
by *icfu » 2005-06-07, 10:09 UTC
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
DarkRuleR
Member
Posts: 190 Joined: 2003-02-20, 22:23 UTC
Location: Netherlands
Post
by *DarkRuleR » 2005-06-07, 14:35 UTC
Cool...
I'm gonna try that one!
Btw. Sorry to hear about your grandma.
#106383 Windows 10 Pro 64-bit