Sync dirs enhancement
Moderators: Hacker, petermad, Stefan2, white
Re: Sync dirs enhancement
2sa16
Yup. Either that or you end up having 2 buttons, one with the default cm_FileSync command and one with the new.
Thnx.
Yup. Either that or you end up having 2 buttons, one with the default cm_FileSync command and one with the new.
Thnx.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: Sync dirs enhancement
Show your path. Are you not using %COMMANDER_PATH% in it? In my button, the command is separated into both lines:wanderer wrote: 2023-03-24, 09:00 UTCThe only problem i faced is that my path is slightly different so when i tried to change it, i bumped on TC's "Command" field max char limit!![]()
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef "tcm(2020,1) eval(send_wait(,findwnd(TCmpForm))) sendmsg(if(%PROCESSOR_ARCHITECTURE:~-2%==64,
findwnd(LCLComboBox,,findwnd(Window,,findwnd(TCmpForm),1)),findwnd(TMyComboBox,,findwnd(TPanel,,findwnd(TCmpForm)))),334,1)"
WCMICON2.DLL,48
Synchronize directories with the latest wildcard
This is a bad way. Don't do that anymore. )wanderer wrote: 2023-03-24, 09:00 UTC Anyway, i created a batch file which i run minimized, so everything is OK.
There is such a problem. Alas, even in the [Selection] section, this mask always remains in key 1, so reading the ini will not solve the issue.wanderer wrote: 2023-03-24, 09:00 UTCit works for everything except *.* which is always the 1st in the list.
Sure. I advise you to look for TCFS2 buttons here and try them to get more into the possibilities. You are welcome.wanderer wrote: 2023-03-24, 09:00 UTCI guess TCFS2 is rather generic, so it may be useful for other things too in the future. Thanks for everything.

Last edited by Fla$her on 2023-03-24, 17:08 UTC, edited 1 time in total.
Overquoting is evil! 👎
Re: Sync dirs enhancement
2wanderer
P.S. Already answered!
You can move part of the line from "Command:" to "Parameters:", for example, after "==64,".The only problem i faced is that my path is slightly different so when i tried to change it, i bumped on TC's "Command" field max char limit!
P.S. Already answered!
Re: Sync dirs enhancement
As it is easy to see, this is exactly what is done in the proposed button.
Overquoting is evil! 👎
Re: Sync dirs enhancement
2Fla$her
I didn't see the previous message (10:59 UTC)...
I didn't see the previous message (10:59 UTC)...
Re: Sync dirs enhancement
2sa16
The previous button had almost the same thing.
The previous button had almost the same thing.
Overquoting is evil! 👎
Re: Sync dirs enhancement
As far as I understand, wanderer had a problem with a line limit in command without Varset and Varget, I tried to solve it.
Re: Sync dirs enhancement
It was already clear. But I am writing about the essence of the approach. It is approximately the same for both buttons (with and without varget).
Overquoting is evil! 👎
Re: Sync dirs enhancement
I've already seen it. The second bracket appeared there when experimenting with if(!tcini(Selection,0,`*.*`), ...).
Overquoting is evil! 👎
Re: Sync dirs enhancement
I tried to add it through the UI. My path is
%COMMANDER_INI%\..\Utils\TCFS2\TCFS2.exe
Which is by 1 char larger than what TC allows!

- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: Sync dirs enhancement
2wanderer
Then where do the problems with limiting the length of the "Command:" field come from?
And why do you need '%COMMANDER_INI%\..'? You will not put the utility relative to the location where the ini file may be, given the launch via /i=.
Then where do the problems with limiting the length of the "Command:" field come from?
And why do you need '%COMMANDER_INI%\..'? You will not put the utility relative to the location where the ini file may be, given the launch via /i=.
Overquoting is evil! 👎
Re: Sync dirs enhancement
Maybe because some of wanderer's Utils needs write access, and his %COMMANDER_PATH% maybe do not have write access.And why do you need '%COMMANDER_INI%\..'?
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
Re: Sync dirs enhancement
2petermad
Ah, i.e. somewhere in the workplace on someone else's PC. OK. )
Ah, i.e. somewhere in the workplace on someone else's PC. OK. )
Overquoting is evil! 👎
Re: Sync dirs enhancement
Not exactly. I chose that path because it's a path which is common to various installation of TC i may have on my disk (i.e. the latest version plus test versions i may have).petermad wrote: 2023-03-25, 11:29 UTCMaybe because some of wanderer's Utils needs write access, and his %COMMANDER_PATH% maybe do not have write access.And why do you need '%COMMANDER_INI%\..'?

- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.