solved [TC 11.00b10] cm_Edit does not work with parameters in Command field

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

solved [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *petermad »

history.txt wrote:05.07.23 Added: cm_Edit with parameters: Option to open the file with associated program instead of editor, either with or without using internal associations (32/64)
This button works as expected:

Code: Select all

TOTALCMD#BAR#DATA
cm_Edit
/CTN="myfile.txt"L3
wcmicons.dll,28
Create and edit myfile.txt
Wheras this button doe not:

Code: Select all

TOTALCMD#BAR#DATA
cm_Edit /CTN="myfile.txt"L3

wcmicons.dll,28
Create and edit myfile.txt
It gives an error mesage from the default editor with a text like this "The syntax in the file name, the folder or the drive name is wrong"
Last edited by petermad on 2023-07-19, 12:59 UTC, edited 3 times in total.
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: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *ghisler(Author) »

Confirmed, I was calling it with the wrong parameter.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *petermad »

history.txt wrote:06.07.23 Fixed: cm_Edit didn't work with parameters directly after cm_Edit (e.g. on a button) instead of in the parameters field (32/64)
Confirmed fixed in TC 11.00rc1 :-)
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: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: solved [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *petermad »

I was too hasty.

cm_Edit still does not work with /N="%|COMMANDER_INI|" in the command field, only in the Parameters field.

cm_Edit /N="%|COMMANDER_INI|" does work OK in TC's command line.

cm_Edit /N="%|COMMANDER_PATH|\wincmd.ini" does not work either in command field
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: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: not fully solved [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *ghisler(Author) »

Since it's the command field, you would have to use %COMMANDER_INI% and not %|COMMANDER_PATH|. However, this isn't currently supported in cm_Edit.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: not fully solved [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *petermad »

I tried %COMMANDER_INI% and it didn't works (as you also write), so I thought ought to be supportede in the command field, since it is supported in the command line.
this isn't currently supported in cm_Edit.
Any chance that it will be supported in the future??
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: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: not fully solved [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *ghisler(Author) »

Yes, it's on my to do list.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: not fully solved [TC 11.00b10] cm_Edit does not work with parameters in Command field

Post by *petermad »

history.txt wrote:13.07.23 Fixed: cm_Edit: Support environment variables in command field, in option N="name(s)" (32/64)
Confirmed fixed in TC 11.00rc2 :-)
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
Post Reply