[HELP] A separate description is required for CM_CREATESHORTCUT

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

Moderators: white, Hacker, petermad, Stefan2

Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

[HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

TOTALCMD.CHM > Dialog box: Choose command

At the moment, CM_CREATESHORTCUT doesn't support most of the parameters available for CM_COPY, CM_RENMOV.
It's necessary to issue a separate description below so that users do not get confused.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *ghisler(Author) »

Sorry, too busy. I will just add a note saying
"CM_CREATESHORTCUT doesn't support all the parameters (see changed dialog box).".
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

At the moment, only 4 options work: G, O, T and W.
I suggest just marking them with asterisks:
CM_COPY, CM_RENMOV, CM_CREATESHORTCUT *:
...
O0..9: Overwrite options, numbers as in the dialog box *
...
G: Go: Start copying immediately (not required when specifying T="path") *
T="path": Target path, MUST be put in double quotes, and end with a backslash if a directory *
W="wildcards": Copy only files of this type *
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *ghisler(Author) »

At the moment, only 4 options work: G, O, T and W.
Thanks for checking, that saves me some time.
G: Go: Start copying immediately (not required when specifying T="path") *
What do you mean with that? G tells TC to start immediately (skipping the dialog) whether T is set or not. If T isn't set, the path from the other panel will be used as the target.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

ghisler(Author) wrote: 2023-05-24, 14:34 UTC What do you mean with that?
This means that in the absence of G and the presence of T="path", the dialog will also not appear similarly with G without T="path".
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *sa16 »

2Fla$her
I do not confirm (cm_CreateShortcut /T="C:\Test\*.lnk"). The window appears.
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

2sa16
Check in the button.
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *sa16 »

2Fla$her
In it I checked.
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

So. I found the cause. I didn't take into account that quotation marks are mandatory for T.
And if the letter g is located in the path without encasing it in quotation marks, then TC will search for the letter, ignoring non-letter characters like ":\".
So a shortcut will appear in another panel:
cm_CreateShortcut /T=C:\g
cm_CreateShortcut /T=C:\blagbla
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *ghisler(Author) »

I will show an error when the user doesn't use a "=" followed by double quotes.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

You probably wanted to say that it does not use double quotes after "="?
And why is the presence of quotation marks so important? Why can't support be done without them?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *ghisler(Author) »

Because otherwise people will easily forget them when they are actually needed, e.g. when the path contains a comma.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

From the "Wrong parameters specified!" message, the user will not understand that the problem is precisely in the absence of quotation marks.
CM_CREATESHORTCUT CM_CREATESHORTCUT supports the following parameters from CM_COPY and CM_RENMOV:
O, G, T and W.
Better like this:
CM_CREATESHORTCUT Supports the following parameters from CM_COPY and CM_RENMOV: O, G, T and W.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *ghisler(Author) »

I added the Enter to keep the 4 together, they were broken to 2 lines. But I can leave out the second CM_CREATESHORTCUT.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: [HELP] A separate description is required for CM_CREATESHORTCUT

Post by *Fla$her »

OK.
Overquoting is evil! 👎
Post Reply