How do I configure a default window size?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zr
Junior Member
Junior Member
Posts: 5
Joined: 2009-06-22, 12:36 UTC

How do I configure a default window size?

Post by *zr »

I'm running Total Commander on machines with different screen resolution.
Is there a way to change the default 1024x800 window size of Total Commander without the need to change to desired window size and "Save Position" in each new screen resolution?
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Sure: Just add the following line to [Configuration] section of wincmd.ini

Code: Select all

ResolutionSpecific=0
Restart TC
=> Settings will be saved at [AllResolutions] section now.
#5767 Personal license
zr
Junior Member
Junior Member
Posts: 5
Joined: 2009-06-22, 12:36 UTC

Works perfectly

Post by *zr »

Exactly what I was looking for.
Thank you very much, sqa_wizard.
martinezzz123
Junior Member
Junior Member
Posts: 2
Joined: 2022-08-31, 16:43 UTC

Re: How do I configure a default window size?

Post by *martinezzz123 »

Hi sorry for refreshing this topic but i have the same problem but I DON'T UNDERSTAND your advice.
The problem is that with modern Windows the wincmd.ini located in windows folder is protected - so commander DOES NOT SAVE it's configuration to it. I have to edit the ini manually and then copy it to the windows folder. So...
Entering the:

Code: Select all

ResolutionSpecific=0
code does not do anything.
How do I set up the actual window size for the Total Commander?
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How do I configure a default window size?

Post by *petermad »

2martinezzz123

TC is more or less useless if it cannot write it's .ini files

By default TC uses %APPDATA%\Ghisler for storing it's .ini files (C:\Users\USERNAME\AppDAta\Roaming\Ghisler).

If you have installed your TC in a folder where you have write permissions (that is: NOT in C:\Program Files or C:\Program Files (x86), but for example in C:\Totalcmd) then you can make TC use the .ini files from C:\Totalcmd by adding the parameter UseIniInProgramDir=7 in the [Configuration] section of your wincmd.ini.

It was back in the days of Windows 95 and earlier, that TC defaulted to using C:\Windows for its ini files.

You can see the location of the .ini files your TC uses via the menu: Help - About Total Commander.

If your TC is actually using C:\Windows for it's .ini files you can change that by editing Wondows' Registry - search for Ghisler, and change the path you see for IniFileName and FtpIniName to %APPDATA%\GHISLER\wincmd.ini and %APPDATA%\GHISLER\wcx_ftp.ini

Notice there are more than one Ghisler entry in the Windows Registry, so change all of them.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
martinezzz123
Junior Member
Junior Member
Posts: 2
Joined: 2022-08-31, 16:43 UTC

Re: How do I configure a default window size?

Post by *martinezzz123 »

I understand but I wouldn't like to change the location of the ini file.
Could you just tell me what is the code for the default window size?
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: How do I configure a default window size?

Post by *sqa_wizard »

As already written above:
ResolutionSpecific=0
=> Settings will be saved at [AllResolutions] section at wincmd.ini now.

The keys are the the same as for other resolutions.
Help wrote:x= x-position of Total Commander
y= y-position
dx= Width
dy= Height
#5767 Personal license
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How do I configure a default window size?

Post by *petermad »

2martinezzz123
I understand but I wouldn't like to change the location of the ini file.
Maybe you don't have to change the location - it is most likely that TC does NOT use C:\Windows\wincmd.ini

Please in TC's menu click "Help" -> "About Total Commander" - and tell us if it there says:
About Total Commander wrote:Setting files:
C:\Windows\winvmd.ini
C:\Windows\wcx_ftp.ini
or not?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply