FORUM Forums Software CLS2SIM Software How to start CLS2Sim from a Windows batch file?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3178
    klstvdr
    Participant

    I want to start CLS2Sim for my CLS-E NG FORCE FEEDBACK YOKE from a Windows batch file, through which I also start other programs that are necessary for the simulation. Unfortunately this doesn’t work as expected.

    I created a file named “startsim.bat” which calls CLS2Sim.exe:

    C:\Users\msfs\FlightSim>type startsim.bat
    start /b “C:\Program Files (x86)\Brunner Elektronik AG\CLS2Sim\CLS2Sim.exe”
    echo OK

    When I call this file it merely starts a new command processor, but not CLS2Sim:

    C:\Users\msfs\FlightSim>startsim

    C:\Users\msfs\FlightSim>start /b “C:\Program Files (x86)\Brunner Elektronik AG\CLS2Sim\CLS2Sim.exe”

    C:\Users\msfs\FlightSim>echo OK
    OK

    C:\Users\msfs\FlightSim>Microsoft Windows [Version 10.0.19045.3208]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\msfs\FlightSim>

    If, on the other hand, I enter “C:\Program Files (x86)\Brunner Elektronik AG\CLS2Sim\CLS2Sim.exe” directly in the command line, CLS2Sim starts correctly.

    How can I start CLS2Sim from a Windows batch file?

    Klaus

    #3179
    klstvdr
    Participant

    Replying to myself: I found a solution here: https://superuser.com/questions/198525/how-can-i-execute-a-windows-command-line-in-background.
    Apparently using

    start “” “C:\Program Files (x86)\Brunner Elektronik AG\CLS2Sim\CLS2Sim.exe”

    does the trick. Don’t know why the empty “” makes such a difference, but at least I can continue now.

    Klaus

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

BRUNNER Forum​

In the BRUNNER forum you will find various discussions on different topics, such as setup, software use or general questions and concerns. 

Discuss with forum mebers, share your knowledge and experience or find answers to frequently asked questions that are answered directly by our Brunner team.

Go to BRUNNER Forum.

BRUNNER Helpdesk​

Do you have questions about a product you have already purchased or are you facing technical issues? 

Check our FAQs for quick help. The most common questions or problems are described there, including instructions.

If you are still stuck, please contact our BRUNNER Helpdesk. Open a ticket here.

BRUNNER Simulation​

BRUNNER is a leading manufacturer of flight simulation devices for the professional as well as the enthusiast sector.

Unlike other manufacturers, Brunner offers a realistic flight experience with the help of Force Feedback Technology and Control Loading System.

Discover the BRUNNER Shop.

BRUNNER Simulation

Industriestrasse 27
8335 Hittnau


+41 (0)44 953 10 10
info@brunner-innovation.swiss

© 2023 BRUNNER Elektronik AG | Privacy Policy |  Legal notice