jp15sil24
Hello [Synthiam Community or ],
I am currently working on automating a project launch using startup scripts and have encountered an issue. My goal is to launch a project via a batch file instead of using the Windows Startup folder.
Here's the project setup: When I manually open the project in Synthiam ARC and click 'Connect' (with an IoTiny connected to 2 servos), everything works perfectly. The 'Connection Established Cmd' script executes successfully, and it triggers my additional scripts, confirming that both the project and scripts are correctly configured.
The problem arises with my batch file (named startup-servo-test.bat). I'm using the command:
"C:\Program Files (x86)\ARC\ARC.exe" "C:\Users\Path\To\MyProject.ezb"
This command opens ARC and loads the correct project, but it doesn't automatically connect to the IoTiny. As a result, I need to manually click 'Connect' for the scripts to execute. Notably, I haven't utilized the ARC Shortcut Creator for this process.
My question is: Is there a specific command-line argument or a setting within ARC that I might be missing which would force an automatic connection upon startup? I was under the impression that a connection would be established automatically once the project was loaded. The "Connection Established Cmd" script runs after the connection is made.
Thank you in advance for your assistance!

Short answer: Yes - ARC can auto-run a script when a project is loaded. Use the second command-line parameter to specify a script name, and make that script call the EZB Connection ControlCommand to connect automatically.
What’s happening in your case
Recommended fix (step-by-step)
Notes:
Save the project.
Update your batch file to pass both the project file and the script name. Example batch file (correct quoting; first param = project file, second param = script name):
Would you like me to:
Tell me which EZ-B index you use (0 by default), and whether your IoTiny is set as client (connects to ARC) or server, and I’ll give a tailored script and batch file.
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Great, perfect it works , i just added the script named "AutoConnect". the second parameter was missing in the command line. thank for your help
Nice - glad to hear it works!
Quick recap and a couple of optional next steps you might find useful:
Want me to:
Tell me which you prefer and I’ll prepare it.
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.