cm_edit does not work properly when the N parameter takes <

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

cm_edit does not work properly when the N parameter takes <

Post by *yahuu »

for example:
[em_CreateFile]
cmd=cm_edit
; Only one file named [C].xls will be created
param=/CGL0 /T="D:\tc\template" /N="<1-10>[C].xls"
; A dialog box will pop up
param=/CGL0 /T="D:\tc\template" /N="<[hms].xls"
; A dialog box will pop up
param=/CGL0 /T="D:\tc\template" /N="<[YMD].xls"
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cm_edit does not work properly when the N parameter takes <

Post by *petermad »

Confirmed

Tested with the parameter either in the cmd field or in the param field.

/N="File<1-10>[C].xls" can't even make a file.
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: cm_edit does not work properly when the N parameter takes <

Post by *ghisler(Author) »

The /G parameter is not currently supported together with the < parameter, because the placeholder replacement happens in the "new file" dialog.
I will try to add it, or add a note to the help that it's not possible to combine the two.
/N="File<1-10>[C].xls" can't even make a file.
Leave out the /G and it will work.
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: cm_edit does not work properly when the N parameter takes <

Post by *petermad »

Leave out the /G and it will work.
Hmm, not here - try this button:

Code: Select all

TOTALCMD#BAR#DATA
cm_Edit
/CL0N="File<1-10>[C].txt"
wciconex.dll,28
Test cm_Edit with [C]
Parameter /CL0N="<1-10>File[C].txt" works fine though - so my bad.
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: cm_edit does not work properly when the N parameter takes <

Post by *ghisler(Author) »

Sorry, I didn't see that you put <1-10> behind File. It must be at the start of the name.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_edit does not work properly when the N parameter takes <

Post by *ghisler(Author) »

This should be fixed in Total Commander 11.01 RC1, please test it!
09.08.23 Fixed: cm_Edit: Parameter /G (go immediately) didn't work with placeholders and counters, e.g. /CGL0 /T="c:\totalcmd\template" /N="<1-10>[C].xls" (32/64)
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: cm_edit does not work properly when the N parameter takes <

Post by *petermad »

Confirmed fixed in TC 11.01rc1 :-)
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: cm_edit does not work properly when the N parameter takes <

Post by *petermad »

Moderator message from: petermad » 2023-08-22, 08:24 UTC

Moved to "TC Fixed bugs" from "TC11.x bug reports (English)"
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