Increase the number of Directory Hotlist

Here you can propose new features, make suggestions etc.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
lisabon
Junior Member
Junior Member
Posts: 34
Joined: 2014-11-22, 12:57 UTC

Increase the number of Directory Hotlist

Post by *lisabon » 2019-09-25, 11:57 UTC

Increase the number of Directory Hotlist items from 997 to 2000.

User avatar
MVV
Power Member
Power Member
Posts: 8403
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Increase the number of Directory Hotlist

Post by *MVV » 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.
Perhaps you will be able to use more hotlist entries if you redirect [DirMenu] section into a separate INI file.

User avatar
Usher
Power Member
Power Member
Posts: 627
Joined: 2011-03-11, 10:11 UTC

Re: Increase the number of Directory Hotlist

Post by *Usher » 2019-09-25, 16:32 UTC

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.
Regards from Poland
Andrzej P. Wozniak

lisabon
Junior Member
Junior Member
Posts: 34
Joined: 2014-11-22, 12:57 UTC

Re: Increase the number of Directory Hotlist

Post by *lisabon » 2019-09-25, 17:25 UTC

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."

User avatar
Usher
Power Member
Power Member
Posts: 627
Joined: 2011-03-11, 10:11 UTC

Re: Increase the number of Directory Hotlist

Post by *Usher » 2019-09-25, 21:49 UTC

2lisabon
It looks like a limitation of the plugin. What size has your ini with dirs?
Regards from Poland
Andrzej P. Wozniak

User avatar
MVV
Power Member
Power Member
Posts: 8403
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Increase the number of Directory Hotlist

Post by *MVV » 2019-09-26, 06:05 UTC

Quite a strange limitation of 997 items, i think TC would use round numbers, e.g. 1000.

lisabon
Junior Member
Junior Member
Posts: 34
Joined: 2014-11-22, 12:57 UTC

Re: Increase the number of Directory Hotlist

Post by *lisabon » 2019-09-26, 06:07 UTC

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

User avatar
Usher
Power Member
Power Member
Posts: 627
Joined: 2011-03-11, 10:11 UTC

Re: Increase the number of Directory Hotlist

Post by *Usher » 2019-09-26, 16:35 UTC

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.
Regards from Poland
Andrzej P. Wozniak

User avatar
Usher
Power Member
Power Member
Posts: 627
Joined: 2011-03-11, 10:11 UTC

Re: Increase the number of Directory Hotlist

Post by *Usher » 2019-09-26, 16:38 UTC

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.
Regards from Poland
Andrzej P. Wozniak

lisabon
Junior Member
Junior Member
Posts: 34
Joined: 2014-11-22, 12:57 UTC

Re: Increase the number of Directory Hotlist

Post by *lisabon » 2019-09-26, 18:54 UTC

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.

User avatar
Usher
Power Member
Power Member
Posts: 627
Joined: 2011-03-11, 10:11 UTC

Re: Increase the number of Directory Hotlist

Post by *Usher » 2019-09-26, 20:27 UTC

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.
Regards from Poland
Andrzej P. Wozniak

Post Reply