Page 1 of 1

REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-24, 18:04 UTC
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.

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-24, 19:01 UTC
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.

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-24, 19:07 UTC
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

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-24, 20:48 UTC
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 :)

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-24, 21:34 UTC
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?

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-25, 08:58 UTC
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.

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-25, 21:46 UTC
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

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-26, 08:23 UTC
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.

Re: REQ: Command-line parameter for cm_SyncChangeDir

Posted: 2023-08-26, 11:41 UTC
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