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

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

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

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post 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.
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post by *white »

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

Moved to Suggestions forum.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

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

Post by *Horst.Epp »

2white
Sorry, but what a strange idea to chain CD commands.
Even simple-minded users should not have such an idea
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.2 x64
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post 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.
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

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

Post 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".
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) »

Why not jump directly to \\\Startup Guard\Overall ?
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

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

Post by *Fla$her »

2ghisler(Author)
Have you read the information on the given link? By the way, you moved that topic yourself. :wink:
Overquoting is evil! 👎
Post Reply