[10.52] External Sync Dirs with file list is broken

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

[10.52] External Sync Dirs with file list is broken

Post by *Flint »

1. Create a text file C:\Temp\list.txt with a couple of existing dir paths, for example

Code: Select all

C:\Program Files\
C:\Windows\
2. Run the following command:

Code: Select all

TOTALCMD.EXE /S=S /L="C:\" /R="D:\" /O="C:\Temp\list.txt"
3. The SyncDirs will start, but the "Only selected" option is unchecked, and the left path contains "C:\Temp\list.txt\" path, and both left and right paths are editable.

Tested in Win10, TC 10.52 32- and 64-bit.
Version 10.51 works correctly (it opens the tool with the "Only selected" option checked with the file name under it; and left/right paths being C:\ and D:\, respectively, and disabled).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: [10.52] External Sync Dirs with file list is broken

Post by *sa16 »

Confirm. The error appeared in the TC 10.52RC1. Possible after
26.09.22 Added: Command line parameters: option /O now supports a parameter: /O0: never open a new instance in any case, other number: same as OnlyOnce value, /O- same as /O-1 (32/64)
Last edited by sa16 on 2022-11-01, 04:59 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *petermad »

Confirm bug in TC 10.52
Confirm no bug in TC 10.51
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *ghisler(Author) »

Confirmed, I will fix it. Fortunately there is a workaround. Change the parameter to:
/O1O="C:\Temp\list.txt"

The first part /O1 will be handled and skipped by the new function.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *Flint »

2ghisler(Author)
Thanks, I confirm that it works with the workaround. I'll be using it for now.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[TC 10.52] /O command line parameter stopped to work

Post by *petermad »

This em_command used to work fine up until and including TC 10.51 final:

Code: Select all

[em_ext_sync2]
cmd=%COMMANDER_EXE% /i="%COMMANDER_INI%" /S=S
param=%Z%X "%P" "%T" /O=%WL
menu=Synchronize Directories, only selected (separate instance)
button=%COMMANDER_EXE%,32
but since TC 10.52 rc1 it does not work anymore - the name of the temporary listfile is used as the left path instead of being shown underneath "Only selected", and "Only selected" is not checked as it should be, it is disabled.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.52] /O command line parameter stopped to work

Post by *ghisler(Author) »

It's a known problem of the /O parameter, see:
viewtopic.php?t=77902

You can use the same workaround.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52] /O command line parameter stopped to work

Post by *petermad »

see:
viewtopic.php?t=77902
I forgot about that - and I even commented in that thread myself :oops:

After it get's fixed in the next version of TC, will the workaround still work (for backward compatibility)?

Maybe a moderator could merge viewtopic.php?t=77902 and viewtopic.php?t=78464
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4576
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.52] /O command line parameter stopped to work

Post by *white »

Moderator message from: white » 2023-02-17, 21:00 UTC

petermad wrote: 2023-02-17, 18:39 UTC Maybe a moderator could merge viewtopic.php?t=77902 and viewtopic.php?t=78464
Done
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *petermad »

2white Thanks :)
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *ghisler(Author) »

After it get's fixed in the next version of TC, will the workaround still work (for backward compatibility)?
Yes, I fixed it recently and made sure that the workaround still works.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *ghisler(Author) »

This should be fixed in TC 11 beta, please test it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *petermad »

Confirmed that parameters /S=S /O= now works again in TC 11.00b1 :-)
Last edited by petermad on 2023-05-06, 08:26 UTC, edited 1 time 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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: [10.52] External Sync Dirs with file list is broken

Post by *Flint »

Indeed, confirm fixed.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply