command line /S=S /O=listname (Synchronize dirs) question

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

command line /S=S /O=listname (Synchronize dirs) question

Post by *Evds »

I made a button with the parameter /s=s /l="%X%P" /r="%X%T" /o=%F to start a separate "synchronize dir" window which i hoped would behave the same way as when i open the commands/"synchronize dirs" dialog from within tcmd.

But i have some problems:

1) When i press the button the file under the cursor is copied to the list file if nothing is selected (%F parameter). When i open then commands/"synchronize dirs" dialog from within tcmd the file under the cursor is ignored if nothing is selected. Is there a parameter that makes a list file without the file under the cursor if no files/dirs are selected ?

2) With the %F parameter only the files selected in the source tab are copied to the list file. When i open commands/"synchronize dirs" the files selected in the source tab and the destination tab are used.

3) bug ? when the cursor is on the line to go to the parent directory '[..]' and i press the button a new tcmd instance is started instead of the "synchronize dirs" dialog ?

tcmd 8.0b19 win xp 32bit
User avatar
petermad
Power Member
Power Member
Posts: 16157
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I use these two commands:
/S=S %Z%X "%P" "%T"
and
/S=S %Z%X "%P" "%T" /O=%L

The second one is for use with selected files/dirs, the first on is for nonselected files/dirs.

I have not found a way to combine the two command lines, because %L (of %F) also gives back a name even if the file/dir under the cursor is not selected.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply