Page 1 of 1

Increase the number of Directory Hotlist

Posted: 2019-09-25, 11:57 UTC
by lisabon
Increase the number of Directory Hotlist items from 997 to 2000.

Re: Increase the number of Directory Hotlist

Posted: 2019-09-25, 14:01 UTC
by MVV
I think you've faced INI file limits, Windows supports only 64 KB INI files, so please check your wincmd.ini size.
Perhaps you will be able to use more hotlist entries if you redirect [DirMenu] section into a separate INI file.

Re: Increase the number of Directory Hotlist

Posted: 2019-09-25, 16:32 UTC
by Usher
MVV wrote: 2019-09-25, 14:01 UTC I think you've faced INI file limits, Windows supports only 64 KB INI files,

It was true for Win9x. In newer Windows it's a limit for a section of ini file.

Many programs don't use system functions to work with ini files and may work with ini file sizes counted in megabytes. Just look at the simple calculation:
65536 / 997 < 66
Do you really think all the dirs are so short?

Finally - if the list contains so many entries, it's definitely NOT HOT. It's heavy and cold as a stone.

Re: Increase the number of Directory Hotlist

Posted: 2019-09-25, 17:25 UTC
by lisabon
MVV wrote: 2019-09-25, 14:01 UTC I think you've faced INI file limits, Windows supports only 64 KB INI files, so please check your wincmd.ini size.
My ini file has a size of 45 660 bytes
MVV wrote: 2019-09-25, 14:01 UTC Perhaps you will be able to use more hotlist entries if you redirect [DirMenu] section into a separate INI file.
It was made by me initially. This does not solve the problem.
Ultra TC Directory Menu Editor when I add a new item, it displays a message:
"The Directory Menu cannot contain more than 997 items."

Re: Increase the number of Directory Hotlist

Posted: 2019-09-25, 21:49 UTC
by Usher
2lisabon
It looks like a limitation of the plugin. What size has your ini with dirs?

Re: Increase the number of Directory Hotlist

Posted: 2019-09-26, 06:05 UTC
by MVV
Quite a strange limitation of 997 items, i think TC would use round numbers, e.g. 1000.

Re: Increase the number of Directory Hotlist

Posted: 2019-09-26, 06:07 UTC
by lisabon
Usher wrote: 2019-09-25, 21:49 UTC It looks like a limitation of the plugin.
No, this is the limit of the Total Commander. When adding a new directory through Total Commander, the previous directory item is overwritten.
Usher wrote: 2019-09-25, 21:49 UTC What size has your ini with dirs?
My ini file has a size of 45 660 bytes

Re: Increase the number of Directory Hotlist

Posted: 2019-09-26, 16:35 UTC
by Usher
lisabon wrote: 2019-09-26, 06:07 UTC My ini file has a size of 45 660 bytes
What ini? I'm talking about INI with so large [DirMenu] section. If it contains 997 dir entries, it must be larger then 100 KB. Find the proper ini file.

Re: Increase the number of Directory Hotlist

Posted: 2019-09-26, 16:38 UTC
by Usher
MVV wrote: 2019-09-26, 06:05 UTC Quite a strange limitation of 997 items, i think TC would use round numbers, e.g. 1000.
Add separator and two constant list options below and you will have 1000 items.

Re: Increase the number of Directory Hotlist

Posted: 2019-09-26, 18:54 UTC
by lisabon
Usher wrote: 2019-09-26, 16:35 UTC What ini?
DirMenu.ini
Usher wrote: 2019-09-26, 16:35 UTC I'm talking about INI with so large [DirMenu] section. If it contains 997 dir entries, it must be larger then 100 KB. Find the proper ini file.
My DirMenu.ini takes 44.5 KB (45 660 bytes). Maybe you have more description in DirMenu.ini, than in my DirMenu.ini file. It is also possible that your DirMenu.ini encoded in Unicode instead of ANSI encoding. Therefore, such a difference in file size.

Re: Increase the number of Directory Hotlist

Posted: 2019-09-26, 20:27 UTC
by Usher
It seems you are right.
Just created a minimal content of two lines for any list item:

Code: Select all

menux=x
cmdx=cd C:\x
where x is an order number. It gives 30488 bytes for 997 items plus formatting, so previously I have miscalculated the size. In your case it's 15 characters more per item.
I did create 1009 items to see TC behaviour, and it's inconsistent: When pressing Ctrl+D, TC shows 998 items, but when choose "Configure…", it shows only 997 items.

However, I'd like to remark once again that 997 items is definitely NOT a hotlist to me, even if it's a nested list, with submenus, subsubmenus, etc. Quick Search works faster.