Page 1 of 1

Allow chaining cd commands: cd "d:\",cd "test\"

Posted: 2023-10-13, 09:17 UTC
by white
A button on the buttonbar with this command does not work:

Code: Select all

cd "d:\",cd "test\"
But this command does work:

Code: Select all

cd "d:\",cm_wait 0,cd "test\"
2ghisler(Author)
Is there a reason for that?

Re: Reason button command not working: cd "d:\",cd "test\"

Posted: 2023-10-13, 09:36 UTC
by ghisler(Author)
Total Commander currently just looks for ,cm_ and ,em_ after a cd command, because there is no need to directly chain cd commands.
Just use cd "d:\test\" instead.

Re: Reason button command not working: cd "d:\",cd "test\"

Posted: 2023-10-13, 10:25 UTC
by white
ghisler(Author) wrote: โ†‘2023-10-13, 09:36 UTC Total Commander currently just looks for ,cm_ and ,em_ after a cd command, because there is no need to directly chain cd commands.
The help says:
[Help - Dialog box: Configuration - Change button bar] 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.
There is no reason for users to think that chaining cd commands doesn't work, so this can be very confusing.

I suggest to support it.

Re: Reason button command not working: cd "d:\",cd "test\"

Posted: 2023-10-13, 10:25 UTC
by white

Moderator message from: white ยป 2023-10-13, 10:25 UTC

Moved to Suggestions forum.

Re: Allow chaining cd commands: cd "d:\",cd "test\"

Posted: 2023-10-13, 10:50 UTC
by Horst.Epp
2white
Sorry, but what a strange idea to chain CD commands.
Even simple-minded users should not have such an idea

Re: Allow chaining cd commands: cd "d:\",cd "test\"

Posted: 2023-10-13, 11:14 UTC
by white
Horst.Epp wrote: โ†‘2023-10-13, 10:50 UTC Sorry, but what a strange idea to chain CD commands.
Even simple-minded users should not have such an idea
Its usefulness is not limited by the scope of your imagination, but by the imagination and preference of all people under all circumstances, now and in the future. To give just one example: people may find it clearer in some circumstances to separate base folder and subfolder, and there's no reason to think it wouldn't work.

Re: Reason button command not working: cd "d:\",cd "test\"

Posted: 2023-10-13, 20:46 UTC
by Fla$her
ghisler(Author) wrote: โ†‘2023-10-13, 09:36 UTCbecause there is no need to directly chain cd commands.
Actually, there is a need: cd "\\\Startup Guard",cd "\\\Startup Guard\Overall"
cm_wait 0 delays the time between them, which is why I observe opening the first directory, which is not present when executing em_StartupGuard,cd "\\\Startup Guard\Overall".

Re: Allow chaining cd commands: cd "d:\",cd "test\"

Posted: 2023-10-15, 07:57 UTC
by ghisler(Author)
Why not jump directly to \\\Startup Guard\Overall ?

Re: Allow chaining cd commands: cd "d:\",cd "test\"

Posted: 2023-10-15, 08:50 UTC
by Fla$her
2ghisler(Author)
Have you read the information on the given link? By the way, you moved that topic yourself. :wink: