• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA Batch file to start app before FSX

Messages
217
Country
azerbaijan
Good evening!

I often forget to launch TrackIR before FSX, as required by Opus Software. So, I've written a simple batch file to do this for me instead of starting FSX.exe:

Bash:
@echo off
cd "C:\NaturalPoint\TrackIR5"
start TrackIR5.exe
timeout /t 5 /nobreak
cd..

cd "D:\Microsoft Games\Microsoft Flight Simulator X"
start fsx.exe

exit

This works for TrackIR but fails on FSX, as I guess fsx.exe is located on a different drive and pops up with "Windows cannot find 'fsx.exe'. Make sure you typed the name correctly, and then try again." error message.

How can I make the batch file to change the drives accordingly? Thanks!
 
Last edited:

tgibson

Resource contributor
Messages
11,338
Country
us-california
Are you sure your fsx.exe is located in the D:\Microsoft Games\Microsoft Flight Simulator X folder?

Also, if you are changing the current drive, try this instead:

cd /D D:\Microsoft Games\Microsoft Flight Simulator X

the /D switch tells DOS to change the drive along with the folder.

No quotes are needed with the cd command (but you can use them if you want).

And why do you cd .. after starting TrackIR? The next cd command just overwrites it.

Hope this helps,
 

Heretic

Resource contributor
Messages
6,830
Country
germany
A simple
Code:
"D:\Microsoft Games\Microsoft Flight Simulator X\fsx.exe"
works for me (using my FSX path; with Steam running).

"Exit" is unneccessary since the script self-terminates.

A "pause" will provide a break point after any command, enabling analysis of what went wrong.
 
Last edited:
Messages
217
Country
azerbaijan
Thank you SO much!!! Both tips worked well for me. Every time I learn something new here... :)
 
Last edited:

Heretic

Resource contributor
Messages
6,830
Country
germany
Stay away from more complex scripts though, since, with increasing complexity, the "a" in "batch" proportionally turns into an "i". ;)
 
Messages
217
Country
azerbaijan
Just to clarify... If I run the batch file as administrator, does that mean that both TrackIR and FSX also run with admin privileges?
 
Top