Registry path to wincmd.ini
Moderators: Hacker, petermad, Stefan2, white
Registry path to wincmd.ini
Hi there,
On the old forum there was listing of registry keys and their search order
to obtain the location of tc installation dir and location of wincmd.ini.
Bad luck it does not exist anymore. Does anyone have copy of that information saved somewhere?
On my computer I have only
HKCU\Software\Ghisler\Total Commander InstallDir
value.
Best regards
On the old forum there was listing of registry keys and their search order
to obtain the location of tc installation dir and location of wincmd.ini.
Bad luck it does not exist anymore. Does anyone have copy of that information saved somewhere?
On my computer I have only
HKCU\Software\Ghisler\Total Commander InstallDir
value.
Best regards
Search in this order, the 1st key that exist should be used:
1. HKCU\Software\Ghisler\Total Commander
2. HKLM\Software\Ghisler\Total Commander
3. HKCU\Software\Ghisler\Windows Commander
4. HKLM\Software\Ghisler\Windows Commander
Under each key there should be three values:
1. "InstallDir" - Path where TC/WC is installed
2. "IniFileName" - Relative* path to the "WinCmd.ini"
3. "FtpIniName" - Relative* path to the "wcx_ftp.ini"
* - Relative to the dir where TotalCmd is installed: "InstallDir"
1. HKCU\Software\Ghisler\Total Commander
2. HKLM\Software\Ghisler\Total Commander
3. HKCU\Software\Ghisler\Windows Commander
4. HKLM\Software\Ghisler\Windows Commander
Under each key there should be three values:
1. "InstallDir" - Path where TC/WC is installed
2. "IniFileName" - Relative* path to the "WinCmd.ini"
3. "FtpIniName" - Relative* path to the "wcx_ftp.ini"
* - Relative to the dir where TotalCmd is installed: "InstallDir"
Last edited by Aezay on 2003-02-24, 19:30 UTC, edited 1 time in total.
Of all the planets I've been to, this one is my favorite.
sorry to bug you again, but for some reason I'm missing all those keys. (Well, I have "installdir" only)Aezay wrote: Under each key there should be three values:
1. "InstallDir" - Path where TC/WC is installed
2. "IniFileName" - Relative* path to the "WinCmd.ini"
3. "FtpIniName" - Relative* path to the "wcx_ftp.ini"
* - Relative to the dir where TotalCmd is installed: "InstallDir"
You said inifilename and ftpininame are relative..
What in case if installdir = c:\program files\tc and your wincmd.ini is in c:\windows ?
IniFileName contains full path then?
I also know that WinCmd.ini and wcx_ftp.ini can be in 2 different places. Will the keys contain full path?
sorry to ask for all those details, I'm creating a small tool that will help plugin devs, therefore I have to have "all bases covered"

piranha> sorry to bug you again, but for some reason I'm missing all those keys. (Well, I have "installdir" only)
I guess when "IniFileName" or "FtpIniName" is missing, you'll properly find them in %windir%, usually "C:\Windows".
piranha> What in case if installdir = c:\program files\tc and your wincmd.ini is in c:\windows ? IniFileName contains full path then?
I based my assumption on my reg settings. I have my ini files in the install dir, and my "IniFileName"=".\WinCmd.ini" and my "FtpIniName"=".\wcx_ftp.ini". Guess they aren't releative after all, but if the 1st two chars are ".\" you'll have to look in the "InstallDir".
I guess when "IniFileName" or "FtpIniName" is missing, you'll properly find them in %windir%, usually "C:\Windows".
piranha> What in case if installdir = c:\program files\tc and your wincmd.ini is in c:\windows ? IniFileName contains full path then?
I based my assumption on my reg settings. I have my ini files in the install dir, and my "IniFileName"=".\WinCmd.ini" and my "FtpIniName"=".\wcx_ftp.ini". Guess they aren't releative after all, but if the 1st two chars are ".\" you'll have to look in the "InstallDir".
Of all the planets I've been to, this one is my favorite.
To sum it up...Hacker wrote:IniFileName can also be "wincmd.ini" in which case it is in the windows dir (as strange as it might sound).
HTH
Roman
I used following algorithm:
Check the registry in following order:
HKCU "Software\Ghisler\Total Commander" "IniFileName"
HKCU "Software\Ghisler\Total Commander" "IniFileName"
HKLM "Software\Ghisler\Total Commander" "IniFileName"
HKCU "Software\Ghisler\Windows Commander" "IniFileName"
HKLM "Software\Ghisler\Windows Commander" "IniFileName"
Then depending on value:
1. "wincmd.ini" or empty: we should use "$WINDIR\$0" (windows dir/valuename)
2. if two first chars are ".": use "$INSTDIR\$1" (tc installdir\ value without .\)
3. If value begins with "%USERPROFILE%" - it's not clear to me.
This is pretty strange since this dir is nowhere defined within windows.
When I checked how inireloc tool worked, in this case it was putting the files to: "c:\Documents and Settings\robert" and not even in "c:\Documents and Settings\robert\Local Settings\Application Data" as recommended from M$. I guess we need authors clarification here. AFAIK nothing should be put in "c:\Documents and Settings\robert"
In this case I simply display "unsupported" message.
4. Any other value use path from value
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Open a DOS box and send the command3. If value begins with "%USERPROFILE%" - it's not clear to me.
This is pretty strange since this dir is nowhere defined within windows.
set
This will show all environment variables. One of them is USERPROFILE.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
The path "c:\Documents and Settings\robert" results of the environment variable USERPROFILE which is available at every OS of M$piranha wrote:not even in "c:\Documents and Settings\robert\Local Settings\Application Data" as recommended from M$
The path "c:\Documents and Settings\robert\Local Settings\Application Data" results of the environment variable APPDATA which is available for Win2k/XP only.
To have the full compatability USERPROFILE is chosen.
#5767 Personal license
Wow. And I spent like an hour digging thru registry. Didn't think about enviroment variable. shame me!ghisler(Author) wrote:Open a DOS box and send the command3. If value begins with "%USERPROFILE%" - it's not clear to me.
This is pretty strange since this dir is nowhere defined within windows.
set
This will show all environment variables. One of them is USERPROFILE.
