[TC 11.00 b7] wrong %n value in Start menu command

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
wc1996
Junior Member
Junior Member
Posts: 4
Joined: 2023-06-19, 03:53 UTC

[TC 11.00 b7] wrong %n value in Start menu command

Post by *wc1996 »

TC 11.00b7 64-bit
Windows 11 Pro, default locale = Simplified Chinese

I have several commands defined in the Start menu, I passed %n as parameter to the target executable. Since 11.00 b7, the %n argument value is wrong just like the string is not initialized (some garbage code). It was correct in b6.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00 b7] wrong %n value in Start menu command

Post by *Horst.Epp »

wc1996 wrote: 2023-06-19, 04:00 UTC TC 11.00b7 64-bit
Windows 11 Pro, default locale = Simplified Chinese

I have several commands defined in the Start menu, I passed %n as parameter to the target executable. Since 11.00 b7, the %n argument value is wrong just like the string is not initialized (some garbage code). It was correct in b6.
Thats a known problem, the usage of short 8.3 file names is broken in b7.
Why can't you use %N ?
The lowercase was only intented for programs which can't handle long names.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.3 x64
wc1996
Junior Member
Junior Member
Posts: 4
Joined: 2023-06-19, 03:53 UTC

Re: [TC 11.00 b7] wrong %n value in Start menu command

Post by *wc1996 »

Horst.Epp wrote: 2023-06-19, 08:11 UTC
wc1996 wrote: 2023-06-19, 04:00 UTC TC 11.00b7 64-bit
Windows 11 Pro, default locale = Simplified Chinese

I have several commands defined in the Start menu, I passed %n as parameter to the target executable. Since 11.00 b7, the %n argument value is wrong just like the string is not initialized (some garbage code). It was correct in b6.
Thats a known problem, the usage of short 8.3 file names is broken in b7.
Why can't you use %N ?
The lowercase was only intented for programs which can't handle long names.
It is a very old program which cannot correctly handle file names with spaces, so I have to pass 8.3 file names to it as a workaround.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00 b7] wrong %n value in Start menu command

Post by *ghisler(Author) »

It will be fixed in beta 8, sorry for the inconvenience.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00 b7] wrong %n value in Start menu command

Post by *ghisler(Author) »

This should be fixed in beta 8, please try it!
Author of Total Commander
https://www.ghisler.com
wc1996
Junior Member
Junior Member
Posts: 4
Joined: 2023-06-19, 03:53 UTC

Re: [TC 11.00 b7] wrong %n value in Start menu command

Post by *wc1996 »

I tested with my old program and I think it's fixed. Thank you.
Post Reply