REQ: Command-line parameter for cm_SyncChangeDir

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

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

REQ: Command-line parameter for cm_SyncChangeDir

Post by *wanderer »

When starting TC from command line with two specific paths, it would be nice if there was an additional command-line parameter to enable SyncChangeDir.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6708
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *Horst.Epp »

Make a view mode and add the cm_SyncChangeDir command into the Auto-run commands.
Add an Auto-view mode setting for one of your 2 dirs and set this view mode.
Windows 11 Home, Version 24H2 (OS Build 26100.2161)
TC 11.50b5 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.81
QAP 11.6.4 x64
Fla$her
Power Member
Power Member
Posts: 2642
Joined: 2020-01-18, 04:03 UTC

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *Fla$her »

2Horst.Epp
Why bind to specific folders at startup? It's unnecessary. It's easier to write the command in autorun.cfg: SendCommand 2600
Overquoting is evil! 👎
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6708
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *Horst.Epp »

Fla$her wrote: 2023-08-24, 19:07 UTC 2Horst.Epp
Why bind to specific folders at startup? It's unnecessary. It's easier to write the command in autorun.cfg: SendCommand 2600
The request is to only start this mode
"When starting TC from command line with two specific paths"
This has nothing to do with general TC start-up.
My suggestion provides this.
Feel free to provide an autorun solution :)
Windows 11 Home, Version 24H2 (OS Build 26100.2161)
TC 11.50b5 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.81
QAP 11.6.4 x64
Fla$her
Power Member
Power Member
Posts: 2642
Joined: 2020-01-18, 04:03 UTC

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *Fla$her »

Horst.Epp wrote: 2023-08-24, 20:48 UTC This has nothing to do with general TC start-up.
My suggestion provides this.
I agree. I overlooked it.
Horst.Epp wrote: 2023-08-24, 20:48 UTC Feel free to provide an autorun solution :)
What are you about?
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1619
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *wanderer »

Horst.Epp wrote: 2023-08-24, 20:48 UTCThe request is to only start this mode
"When starting TC from command line with two specific paths"
This has nothing to do with general TC start-up.
Exactly. When passing the paths through command-line, i'd also like to be able to enable SyncChangeDir mode.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Fla$her
Power Member
Power Member
Posts: 2642
Joined: 2020-01-18, 04:03 UTC

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *Fla$her »

You can do this:

Code: Select all

If  StrPos(AUTORUN_TCCMDLINE, '/L="C:\Path\to\dir"') > 1 _
And StrPos(AUTORUN_TCCMDLINE, '/R="D:\Path\to\dir"') > 1 Then SendCommand 2600
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1619
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *wanderer »

Fla$her wrote: 2023-08-25, 21:46 UTC You can do this:
I don't think i can do this. First of all where should i do this and second, i want to pass those parameters from an external program. How would i do what you describe.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Fla$her
Power Member
Power Member
Posts: 2642
Joined: 2020-01-18, 04:03 UTC

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *Fla$her »

2wanderer
I wrote where:
Fla$her wrote: 2023-08-24, 19:07 UTCIt's easier to write the command in autorun.cfg:
Have you ever used the Autorun plugin?
Where you will run your TC instance with this setting doesn't matter.
Only on the command line, you cannot use /i= with another ini file without Autorun installed.

You can make it even easier — look for the presence of a key like /CS:

Code: Select all

If StrPos(AUTORUN_TCCMDLINE, ' /CS') > 1 Then SendCommand 2600
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1619
Joined: 2003-03-28, 14:35 UTC
Location: Sol

cm_SyncChangeDir using command-line parameters

Post by *wanderer »

I searched a bit in Help and couldn't find anything, so i'm requesting it as a feature.

One can pass the Left and Right folders as command-line parameters when executing TC. Why not also have a command-line switch to turn on cm_SyncChangeDir?
Last edited by wanderer on 2024-09-01, 21:53 UTC, edited 2 times in total.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
Hacker
Moderator
Moderator
Posts: 13136
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: REQ: Command-line parameter for cm_SyncChangeDir

Post by *Hacker »

Moderator message from: Hacker

Merged topic cm_SyncChangeDir using command-line parameters.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply