Page 3 of 4
Re: Sync dirs enhancement
Posted: 2023-03-24, 10:28 UTC
by wanderer
2sa16
Yup. Either that or you end up having 2 buttons, one with the default cm_FileSync command and one with the new.
Thnx.
Re: Sync dirs enhancement
Posted: 2023-03-24, 10:59 UTC
by Fla$her
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!
Show your path. Are you not using %COMMANDER_PATH% in it? In my button, the command is separated into both lines:
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
Do you really have a path longer than 123 characters?
wanderer wrote: 2023-03-24, 09:00 UTC
Anyway, i created a batch file which i run minimized, so everything is OK.
This is a bad way. Don't do that anymore. )
wanderer wrote: 2023-03-24, 09:00 UTCit works for everything except *.* which is always the 1st in the list.
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 UTCI guess TCFS2 is rather generic, so it may be useful for other things too in the future. Thanks for everything.
Sure. I advise you to look for TCFS2 buttons here and try them to get more into the possibilities. You are welcome.

Re: Sync dirs enhancement
Posted: 2023-03-24, 11:03 UTC
by sa16
2
wanderer
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!
You can move part of the line from "Command:" to "Parameters:", for example, after "
==64,".
P.S. Already answered!
Re: Sync dirs enhancement
Posted: 2023-03-24, 11:08 UTC
by Fla$her
As it is easy to see, this is exactly what is done in the proposed button.
Re: Sync dirs enhancement
Posted: 2023-03-24, 11:30 UTC
by sa16
2Fla$her
I didn't see the previous message (10:59 UTC)...
Re: Sync dirs enhancement
Posted: 2023-03-24, 11:39 UTC
by Fla$her
2sa16
The previous button had almost the same thing.
Re: Sync dirs enhancement
Posted: 2023-03-24, 11:57 UTC
by sa16
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
Posted: 2023-03-24, 12:09 UTC
by Fla$her
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).
Re: Sync dirs enhancement
Posted: 2023-03-24, 16:59 UTC
by sa16
At the
button at this page mistakenly there is an excess bracket
334,1))"
Re: Sync dirs enhancement
Posted: 2023-03-24, 17:11 UTC
by Fla$her
I've already seen it. The second bracket appeared there when experimenting with if(!tcini(Selection,0,`*.*`), ...).
Re: Sync dirs enhancement
Posted: 2023-03-25, 08:16 UTC
by wanderer
Fla$her wrote: 2023-03-24, 10:59 UTCShow your path. Are you not using %COMMANDER_PATH% in it?
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!

Re: Sync dirs enhancement
Posted: 2023-03-25, 10:30 UTC
by Fla$her
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=.
Re: Sync dirs enhancement
Posted: 2023-03-25, 11:29 UTC
by petermad
And why do you need '%COMMANDER_INI%\..'?
Maybe because some of wanderer's Utils needs write access, and his %COMMANDER_PATH% maybe do not have write access.
Re: Sync dirs enhancement
Posted: 2023-03-25, 11:52 UTC
by Fla$her
2petermad
Ah, i.e. somewhere in the workplace on someone else's PC. OK. )
Re: Sync dirs enhancement
Posted: 2023-03-25, 18:27 UTC
by wanderer
petermad wrote: 2023-03-25, 11:29 UTC
And why do you need '%COMMANDER_INI%\..'?
Maybe because some of wanderer's Utils needs write access, and his %COMMANDER_PATH% maybe do not have write access.
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).

I like to keep a common INI in all of them.