[TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
white
Power Member
Power Member
Posts: 4626
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *white »

Ghisler's statement earlier meant he did fix it already:
ghisler(Author) wrote: 2023-08-22, 08:41 UTC The function returns FALSE because there was no directory change. When I change this to TRUE, then there is no problem.
Fla$her
Power Member
Power Member
Posts: 2326
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *Fla$her »

I understood this as checking the operation of a function that expects TRUE. Does this mean that TRUE will remain in case of an error? This answer doesn't clarify this.
Overquoting is evil! 👎
User avatar
white
Power Member
Power Member
Posts: 4626
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *white »

2Fla$her
Ghisler's second post clarified it and I just clarified it.
Fla$her
Power Member
Power Member
Posts: 2326
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *Fla$her »

No, that's not the answer to my question. This is just a guess (about fix).
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *ghisler(Author) »

It will now return TRUE when the name exists and represents a file. You will still get an error when the name after "cd" doesn't exist, or when it's a folder but the cd command fails.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2326
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *Fla$her »

2ghisler(Author)
Well, you actually described the second point. That's what we need.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *ghisler(Author) »

This should be fixed in Total Commander 11.01 RC2, please try it!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4626
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *white »

The example in topic start seems to be fixed, but is it normal that it doesn't work if the path after the cd command isn't quoted? Is it also normal that setting a filter using the cd command (cd *.txt) doesn't work?
User avatar
petermad
Power Member
Power Member
Posts: 14814
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *petermad »

2white
but is it normal that it doesn't work if the path after the cd command isn't quoted?
Yes, see:
Help wrote:You can also place one or more of Total Commander's internal menu commands here comma-separated. Just click on the button with the magnifying glass and choose a command from the dialog box "Choose command".
Can be combined with cd command (change directory) with the path in double quotes.
Example for multiple commands: cd "c:\windows",cm_SelectAll,cm_Copy
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14814
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *petermad »

history.txt wrote:21.08.23 Fixed: cd Filename in button bar combined with other commands would correctly place the cursor on Filename, but report an error (32/64)
Confirmed fixed in TC 11.01rc2 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4626
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *white »

2petermad
Thanks, so the question remains why cd "c:\windows\*.txt" doesn't work when using multiple commands.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *ghisler(Author) »

Thanks for confirming the fix!
Thanks, so the question remains why cd "c:\windows\*.txt" doesn't work when using multiple commands.
Sorry, setting filters isn't currently supported. Maybe in a later version.

Moderator message

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14814
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *petermad »

2white
Confirmed that cd "*.txt" (cd used to set a file mask) does not work for multi-commands.

If this cannot be fixed, it should be mentioned in the Help that wildcards cannot be used with cd for multiple commands.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *ghisler(Author) »

cd *.txt and "cd *.txt" never worked in the command line (also not in TC 10.52 and older), only as a single command on a button. The multi-command handler uses the cd function from the command line, so cd "*.txt" isn't supported there either. I will add a note to the help.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2326
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.01RC1] After creating the files and positioning the cursor, an error window appears

Post by *Fla$her »

Bring back the topic, please.
The bug is not fixed on the x32 version. Moreover, no files are created, only one test_[C].txt is created without a number.
Overquoting is evil! 👎
Post Reply