Problem using external sync dir to avoid modal dialog
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
1) This isn't a problem of the sync tool, but with missing switches in the button bar/start menu.
2) Indeed this isn't currently supported, maybe in the future
3) Sorry, this is completely impossible, since the ftp connection of the main window is re-used
4) This may be possible via one of the list switches
5) Sorry, I never had this problem.
2) Indeed this isn't currently supported, maybe in the future
3) Sorry, this is completely impossible, since the ftp connection of the main window is re-used
4) This may be possible via one of the list switches
5) Sorry, I never had this problem.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
1) Yes of cause. But it is related very much and I would be very happy about this feature.ghisler(Author) wrote:1) This isn't a problem of the sync tool, but with missing switches in the button bar/start menu.
2) Indeed this isn't currently supported, maybe in the future
3) Sorry, this is completely impossible, since the ftp connection of the main window is re-used
4) This may be possible via one of the list switches
5) Sorry, I never had this problem.
3) I only gathered the differences. I know it would be very difficult.
5) I know. As its only a rare display bug I can live with that.
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
I found out a pretty good workaround for (1). I used my ButtonBar eXtended to create a macro:
- first call "cm_FocusLeft"
- then call "%Commander_Path%\TOTALCMD.EXE /S=S "%P" "%T""
- first call "cm_FocusLeft"
- then call "%Commander_Path%\TOTALCMD.EXE /S=S "%P" "%T""
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I worked on the solution of these problems during the last few days. Here are my solutions:
1. Parameter %X will change the meaning of several parameters from source/target to left/right:
%P,%p,%N,%n,%T,%t,%M,%m,%S,%s
2. Parameter %Z tells TC to launch program with archive name as parameter when within an archive.
3. Sorry, FTP cannot be supported
4. New parameter /O=<filename> can be used to pass list of only selected files to external sync tool
5. Sorry, I cannot solve the problem because I cannot reproduce it.
1. Parameter %X will change the meaning of several parameters from source/target to left/right:
%P,%p,%N,%n,%T,%t,%M,%m,%S,%s
2. Parameter %Z tells TC to launch program with archive name as parameter when within an archive.
3. Sorry, FTP cannot be supported
4. New parameter /O=<filename> can be used to pass list of only selected files to external sync tool
5. Sorry, I cannot solve the problem because I cannot reproduce it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
Wow great to hear that. Thanks. Thumbs up.
Im not sure if I got the syntax of everything, but I will see and try it in the next beta.
I have especially the question if there is one combination of Parameters so that it could be brought all together.
It wouldn't be very nice if one have to create 3 buttons. For standalone sync normal, for standalone sync with zips, for standalone sync with selected files.
If this couldnt be done so easy TC should have a new internal command checking the conditions and then create the according command line.
Im not sure if I got the syntax of everything, but I will see and try it in the next beta.
I have especially the question if there is one combination of Parameters so that it could be brought all together.
It wouldn't be very nice if one have to create 3 buttons. For standalone sync normal, for standalone sync with zips, for standalone sync with selected files.
If this couldnt be done so easy TC should have a new internal command checking the conditions and then create the according command line.
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
Really great improvements in last beta Christian. Thanks a lot.
1) Added in TC 7.5 pb8.
2) Added in TC 7.5 pb8.
3) not possible
4a) Added in TC 7.5 pb8 the possibility to use a filelist
4b) no support for proper parameters from TC
5) didn't occur recently
Edit:
1) Added in TC 7.5 pb8.
2) Added in TC 7.5 pb8.
3) not possible
4a) Added in TC 7.5 pb8 the possibility to use a filelist
4b) no support for proper parameters from TC
5) didn't occur recently
Edit:
Also fixed in TC 7.5 pb8.Samuel wrote:F3 does not work on "jpg" or "png" in standalone sync tool. It just behaves as if the IrfanView path is wrong.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
Just as discussed in beta forum:
4b) There are no parameters from TC I can use for calling the "/O=" parameter of standalone sync.
If I use "/S=S "%Z%X%P" "%T" /O=%L" this will:
- not select files from both panels
- select also file under cursor if nothing is selected
- if nothing is selected and cursor is on ".." it doesnt work
So its not possible to replace the intern sync by the standalone in a seamless (exactly working the same) way.
So I have to create different buttons for it.
4b) There are no parameters from TC I can use for calling the "/O=" parameter of standalone sync.
If I use "/S=S "%Z%X%P" "%T" /O=%L" this will:
- not select files from both panels
- select also file under cursor if nothing is selected
- if nothing is selected and cursor is on ".." it doesnt work
So its not possible to replace the intern sync by the standalone in a seamless (exactly working the same) way.
So I have to create different buttons for it.
Yes it is mostly the function of %L that is not totally suited for this:
1. it only works for the source side
2. it is called even if no files are selected (with current file)
Maybe TC could discard /O=L if no files are selected.
Maube this could be a parameters line for using /O on both sides:
/S=S %Z%X "%P" "%T" /O=%L %x/O=%L
or
/S=S %Z%X "%P" "%T" /O=%L%%x%L
1. it only works for the source side
2. it is called even if no files are selected (with current file)
Maybe TC could discard /O=L if no files are selected.
Maube this could be a parameters line for using /O on both sides:
/S=S %Z%X "%P" "%T" /O=%L %x/O=%L
or
/S=S %Z%X "%P" "%T" /O=%L%%x%L
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
I can confirm that this is fixed in TC 7.50pb8F3 does not work on "jpg" or "png" in standalone sync tool. It just behaves as if the IrfanView path is wrong.

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
I would propose the following additional parameters:
(first and last parameter behave the way "%X" and "%x" work - the second behaves the way "%Z" works)
Currently unused letters when using parameters:
BTW: Empty titlebar still occurs sometimes, but I cant reproduce it and its really no problem as it is just visual issue.
Edit:
A proper commandline for the standalone sync would be then:
Perhaps TC should simply provide "cm_FileSyncStandalone"
Code: Select all
1) %G and %g - Parameters like %S between %G and %g use selected filenames from both panels as input.
2) %H - If there are no files selected in a panel do not select the file under the cursor instead.
3) %I and %i - Parameters like %S or %N between %I and %i can be empty without resulting in an empty parameter string.
Currently unused letters when using parameters:
Code: Select all
abcghijkquvwyz
BCGHIJKQUVWY
Edit:
A proper commandline for the standalone sync would be then:
Code: Select all
TOTALCMD.EXE %Z%H/S=S "%X%P" "%T" /O=%G%I%L
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
It would be the same as "%I".
The other 2 parameters could also be very useful.
Perhaps something like "%J" could also be fine: (new idea)
%J - the parameter string is split at each occurrence of %J. Then it parses the splitted strings from the beginning and uses the first string for which all parameters are valid:
This if files are selected only on the src panel:
This if files are selected only on the target panel:
And finally this if there is no file selected at all:
The other 2 parameters could also be very useful.
Perhaps something like "%J" could also be fine: (new idea)
%J - the parameter string is split at each occurrence of %J. Then it parses the splitted strings from the beginning and uses the first string for which all parameters are valid:
So it would call this if files are selected in both panels:Command: a.exe
Parameter: -s %S -t %R%J-s %S%J-t %R%J-n
Code: Select all
Command: a.exe
Parameter: -s %S -t %R
Code: Select all
Command: a.exe
Parameter: -s %S
Code: Select all
Command: a.exe
Parameter: -t %R
Code: Select all
Command: a.exe
Parameter: -n