How to get path to wincmd.ini/totalcmd.ini from plugin?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vserd
Junior Member
Junior Member
Posts: 27
Joined: 2005-04-26, 13:30 UTC

How to get path to wincmd.ini/totalcmd.ini from plugin?

Post by *vserd »

How to I get path to wincmd.ini/totalcmd.ini from archiver plugin (*.wcx)?
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

It should be in the registry under

Code: Select all

\HKEY_CURRENT_USER\Software\Ghisler\Total Commander\IniFileName
\HKEY_CURRENT_USER\Software\Ghisler\Total Commander\FtpIniName
If TC has been correctly installed.
I switched to Linux, bye and thanks for all the fish!
User avatar
nevidimka
Senior Member
Senior Member
Posts: 385
Joined: 2004-06-20, 21:38 UTC

Post by *nevidimka »

Plz don't use this damned registry settings.

Correct way is described in "Plugin Reference"
Plz have a look here:
http://www.ghisler.ch/board/viewtopic.php?p=56513&#56513
The doorstep to the temple of wisdom is a knowledge of our own ignorance. Benjamin Franklin
vserd
Junior Member
Junior Member
Posts: 27
Joined: 2005-04-26, 13:30 UTC

Post by *vserd »

2 nevidimka[\b]
PackDefaultParamStruct ...
DefaultIniName Suggested location+name of the ini file where the plugin could store its data. This is a fully qualified path+file name, and will be in the same directory as the wincmd.ini. It's recommended to store the plugin data in this file or at least in this directory, because the plugin directory or the Windows directory may not be writable!

Its param (DefaultIniName) correct sets to path to wincmd.ini via totalcmd.exe /i=%samepath%\wincmd.ini param?
If its true, its very good :)))

2 SanskritFritz
Registry keys not always point to correct path.
Starting with TC 6.5 in command line param you can change path, and wincmd.ini have same keys for changing search behavior for TC to wincmd.ini file.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Registry keys not always point to correct path
Yes, true, i wanted to delete my post as i thought about, but nevidimka was fast ;-)
I switched to Linux, bye and thanks for all the fish!
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2vserd
Its param (DefaultIniName) correct sets to path to wincmd.ini via totalcmd.exe /i=%samepath%\wincmd.ini param?
If its true, its very good Smile
Yes and no. The directory path is the same as the directory path of the Total Commander main settings file. But this doesn't mean its name has to be Wincmd.ini or Totalcmd.ini.
Last edited by Lefteous on 2005-04-26, 22:27 UTC, edited 1 time in total.
User avatar
petergus
Member
Member
Posts: 164
Joined: 2003-02-06, 16:28 UTC
Location: Sweden, Enköping
Contact:

Post by *petergus »

Perhaps two new environment variables is needed:

%TCSETTINGS_PATH%
%FTPSETTINGS_PATH%

// Peter
Post Reply