Sync dirs enhancement

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
wanderer
Power Member
Power Member
Posts: 1573
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post 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. :)
Last edited by Fla$her on 2023-03-24, 17:08 UTC, edited 1 time in total.
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post by *sa16 »

2wanderer
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!
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post by *Fla$her »

As it is easy to see, this is exactly what is done in the proposed button.
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post by *sa16 »

2Fla$her
I didn't see the previous message (10:59 UTC)...
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post by *Fla$her »

2sa16
The previous button had almost the same thing.
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post 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.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post 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).
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post by *sa16 »

At the button at this page mistakenly there is an excess bracket 334,1))"
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post by *Fla$her »

I've already seen it. The second bracket appeared there when experimenting with if(!tcini(Selection,0,`*.*`), ...).
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1573
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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! :)
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post 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=.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Sync dirs enhancement

Post 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.
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
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post by *Fla$her »

2petermad
Ah, i.e. somewhere in the workplace on someone else's PC. OK. )
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1573
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Post Reply