Starting Sequence and Batch File Use for ProSim737 Avionics Suite

Splash screen - Prosim737 main module (startup sequence added)

Introduction

A full cockpit simulator that emulates Boeing 737 avionics is far more complex than a desktop flight simulator. A full cockpit simulator integrates multiple hardware components, a complete avionics suite, and several layers of ancillary software. Each component, whether responsible for flight controls, cockpit displays, or system logic must communicate reliably with the others to maintain a seamless and accurate simulation environment.

Because the system’s components are interdependent, the software must be started and shut down in a logical sequence to maintain stability, performance, and consistent behaviour. This is especially important when multiple applications are part of the same workflow, as each component may depend on specific services, configuration states, or background tasks being completed prior to initialisation.

This guide outlines the recommended startup sequence for the ProSim737 avionics suite. It also describes the key components involved and introduces batch files as a practical method for automating the process, ensuring that the flight simulator and its supporting software start and shut down in a controlled and predictable sequence.

Terminology Note: In this article, the terms run, launch and start are used interchangeably.

ProSim737 - Module Instances and Configuration

The ProSim737 avionics suite is designed to operate in both single and multi-computer environments. To support this flexibility, the platform allows a variety of system configurations, including running multiple instances of the same module simultaneously. The only exception is the ProSim737 main module, which must be installed on the server computer running Flight Simulator.

This capability allows individual modules to be tailored to specific functions, providing flexibility in how displays, audio, and other systems are configured. For example, a single display module can be started multiple times to serve different cockpit functions. Four instances can provide the Captain’s and First Officer’s Primary Flight Displays (PFD) and Navigation Displays (ND).

The same principle applies to the audio module. Multiple instances can run in parallel, enabling specific sounds, such as callouts, system alerts, or environmental audio, to be routed to different speakers throughout the simulator.

Typical ProSim737 Setup

A typical Flight Simulator setup will run one or more instances of the following ProSim software:

  • ProSim737 main module.

  • ProSim IOS (Instructor Operator Station).

  • ProSim Display module.

  • ProSim Audio module.

  • ProSim Hardware Connector.

  • ProSim CDU.

  • ProSim Overhead (main panel).

  • ProSim Chrono module (clock and timer).

More complex setups may involve both server and client computers, with multiple instances of the same components running across the network. To ensure proper communication between these modules, the ProSim737 main module must be running and active, as it manages all interactions within the ProSim737 avionics suite.

ProSim737 Module Startup and Communication Logic

The most important module in the ProSim737 family is the ProSim737 main module, which serves as the central controller and must be running and initialised before other modules can communicate.

When run, the ProSim737 main module will:

  • Scan the network for other ProSim modules;

  • Establish communication channels (typically via TCP/UDP);

  • Begin sending and receiving data packets; and

  • Activate the other modules, which ‘wake up’ once communication is established (if in standby mode).

If any other ProSim module is opened before the main module, it remains idle; it processes no flight data, performs no system initialisation, and generates no errors - until a connection with the main module is established. Therefore, running modules in standby mode does not harm the software or corrupt any files.

Although ProSim737 is robust and capable of connecting to its sister modules, starting modules in standby mode before the main module can sometimes cause issues. These may include the main module failing to connect to the server, or individual modules not receiving data or functioning correctly.

For this reason, it is recommended to start the ProSim737 main module first. Once it is running, the remaining modules can be opened to ensure a clean connection and a smooth startup process.

If the main module fails to connect, or if an individual module is not functioning correctly, simply close all ProSim modules and restart them. Flight Simulator and other supporting programs can remain running.

Important Point

  • ProSim737 modules can be started in any sequence. However, for the most logical, reliable, and consistent operation, it is recommended to start the main module first, allow it time to initialise, and then start the remaining modules.

When to Start Flight Simulator and ProSim737

For the ProSim737 avionics suite to operate correctly, it is important to follow a logical startup sequence. Begin by starting Flight Simulator, loading a flight, and positioning the aircraft on the runway with the wheel brakes applied to prevent unintended movement. Once Flight Simulator is running correctly, start the ProSim737 main module. After the main module has opened and the software has initialised, the remaining modules can be started.

Launching modules in the wrong sequence will not damage the software, but following a controlled startup sequence ensures each application has time to initialise, establishes clean inter‑module communication, reduces the risk of conflicts, and allows background services to stabilise before use.

Flight Simulator should be started first because ProSim737 relies on several layers of software hierarchy that must communicate with Flight Simulator before the main module can initialise successfully.

Ancillary Software

Although real‑world testing has shown no issues, it is good practice to start any additional software only after Flight Simulator and ProSim737 are running, unless the additional software’s own manual specifies a different startup sequence.

Active Sky

Active Sky (ASFS) is widely used by ProSim737 users because it provides realistic rainfall returns on the weather radar. Hi‑Fi recommends starting Active Sky before launching Flight Simulator so that the desired weather can be viewed and selected prior to loading a flight. However, this is not essential, Active Sky can also be started after Flight Simulator is already running.

Since the ProSim737 main module reads weather information during its startup sequence, it is best to have Active Sky running with the weather already selected (or live weather downloaded and displayed) before starting the main module.

Recommended Starting Sequence

After Flight Simulator and the ProSim737 main module have been started, there is no specific sequence that the remaining modules should be opened. The following is a suggestion:

  1. Flight Simulator.

  2. ProSim737 main module (wait until running and initialised).

  3. ProSim Hardware Connector (if required).

  4. ProSim Display module (Captain and First Officer-side PFD, ND and EICAS - any sequence).

  5. ProSim Audio module (s).

  6. ProSim Chrono module.

  7. ProSim Overhead (main panel).

  8. ProSim other components/displays (if required).

  9. ProSim CDU.

  10. Ancillary Programs.

Note: In this startup sequence, Active Sky (if used) may be started either after Flight Simulator but before starting the ProSim737 main module, or prior to starting Flight Simulator.

Closing ProSim737, Flight Simulator and Ancillary Programs

There is no officially defined shutdown protocol, and depending on your setup, it may be necessary to keep the ProSim737 main module running to use the IOS for closing client computers (For IOS to function, it must maintain a connection with the main module). The following shutdown sequence is therefore recommended:

  1. Close ancillary programs.

  2. Close all ProSim components and displays.

  3. Close ProSim IOS.

  4. Close ProSim737 main module.

  5. Close Flight Simulator.

Batch File Use

Batch files provide an efficient way to automate repetitive tasks within a simulator environment. When configured correctly, they streamline the startup and shutdown of multiple applications, reduce operator workload, and ensure programs run in a controlled, predictable sequence.

This section offers an overview of batch file usage, key concepts, and common syntax relevant to ProSim737 and associated Flight Simulator software.

Function of Batch Files

A batch file is a simple script that executes a series of Windows commands automatically. In a simulation environment, batch files are particularly useful for:

  • Launching, closing, or terminating multiple programs in a defined sequence;

  • Managing timing between application launches;

  • Displaying status messages to the operator; and

  • Reducing manual input and the potential for error.

Batch files can range from very simple (one or two commands) to highly complex scripts containing logic, error handling and console display formatting.

For example, a typical startup batch file used for a simulator session may:

  • Display a formatted header;

  • Launch multiple simulator-related applications;

  • Start programs from specific directories;

  • Display confirmation messages after each command;

  • Insert timed pauses between launches (timeouts);

  • Report success or failure of each operation;

  • Display timestamps or proprietary information; and

  • Automatically close the console window after a defined delay (to allow time to read the console display message).

The batch file may also configure the console display (the pop-up window that appears when it runs) by:

  • Disabling command echoing (@echo off): prevents commands from being displayed;

  • Setting UTF‑8 encoding (chcp 65001): enables support for additional special characters; and

  • Applying custom console colors (color 2F): changes the text and background colors for improved readability.

While the advantages of a startup batch file are clear, a shutdown batch file is equally valuable. Both provide significant time savings and offer a convenient, one‑click method for opening or closing a flight simulator session.

Special Note - Shutting Down Active Sky

Active Sky requires a graceful, timed shutdown. Closing the program without allowing sufficient time can prevent it from shutting down correctly, which may cause it to fail to connect to its server the next time it is started.

If the batch file does not close Active Sky properly, it is recommended to close the program manually. This can be done either by clicking the X in the top-right corner of the window or by right-clicking the Active Sky icon in the Taskbar and selecting Close.

System Stability and Timeouts

Launching multiple programs simultaneously using a batch file can sometimes overload system resources or cause applications to initialise incorrectly, particularly when network connections must be established before proper operation. To prevent this, it is recommended to include a short pause between commands to allow for:

  • Completion of background processes;

  • Graceful initialisation of programs; and

  • Establishment of stable connections for network-dependent modules.

Most ProSim737 modules initialise quickly, and a one-second pause between each module is usually sufficient. However, some modules may require slightly longer delays if additional startup time is needed or if the computer is operating under limited resources. The ProSim737 main module typically takes the longest to initialise; however, a slight overlap during the startup of other modules rarely, if ever, causes issues.

When the main module runs on a server machine and the remaining modules run on a client machine, it should be allowed to fully initialise before starting any client-side modules. This ensures that all dependent components can connect cleanly and helps prevent unnecessary connection errors.

Important Point

  • Timeouts are strongly recommended in startup scripts. During shutdown, they are optional but still beneficial, as programs may require time to save data and close gracefully.

Creating a Batch File

  1. Start Notepad.

  2. Enter the file path and desired batch commands.

  3. Save the file: choose Save As - All Files and apply the .bat extension.

  4. Create a desktop shortcut if desired (the shortcut can also be pinned to the Taskbar).

Note: The batch file can be edited at any time by right-clicking the file and selecting Edit.

Because batch syntax is extensive, the most practical way to learn is to adapt an existing working script. Sample batch files are available for download in the file download section (Batch Files ProSim737 Advanced).

If you search the Internet, you will find several methods to create batch files of varying complexity. Often, there are multiple ways to accomplish the same task.

Important Point

  • Long file paths are easy to mistype. To copy a file path accurately:

  1. Hold Shift and right-click the file; and

  2. Select Copy As Path.

The copied path can then be pasted into Notepad along with the appropriate batch command.

Common Batch Commands

There are many batch commands that can be used. Table 1 outlines some of the more common commands used.

TABLE 1: Common batch file commands

My Preferences

I do not use a batch file to start Flight Simulator (MSFS 2020/2024) or Active Sky.

Flight Simulator can take considerable time to load, depending on connection speeds, and it is important that the software starts gracefully without competing processes. I manually start Active Sky from a taskbar shortcut after Flight Simulator is running and the aircraft is stable at the selected airport.

I do use batch files to start the ProSim737 main module and other ProSim components on both server and client computers. A corresponding closure batch file shuts down all programs on the server and client machines.

Sample Batch Files

In the sample closure batch file (see the gallery and download section), several programs are listed; some which may not be running when the batch file is executed. This is intentional, as different programs are often used during testing. In practice, executing a batch file that attempts to close programs not currently running has no effect - Windows simply ignores the command without causing any issues.

Troubleshooting Starting Sequence and Batch File Issues

Startup problems with ProSim737 are most often caused by connection issues between the ProSim737 main module and its associated modules. If errors occur during startup:

  1. Allow sufficient time for the ProSim737 main module to start and initialise. Ensure the module connects to the server and fully initialises before starting any other modules.

  2. If problems persist, especially after installing an update, the recommended approach is to:

  • Uninstall ProSim737 and reinstall the latest full (non-beta) release (including modules).

  • After confirming that version works correctly, you may then update to the latest beta if desired.

Important Point

Many startup problems can also related to batch files, particularly if you are unfamiliar with their syntax or directory paths. If a batch file does not function as expected, check that:

  • All directory paths are correct;

  • Commands are typed accurately; and

  • Appropriate delays (timeouts) are included between module launches (if required).

Additional Information

Final Call

Starting ProSim737 modules in the wrong sequence will not damage the software, but following a logical startup sequence and allowing each application time to initialise helps the system establish clean, reliable communication between modules - particularly the ProSim737 main module. By following this controlled startup approach, the likelihood of conflicts is reduced, background services have time to stabilise, and the environment for running Flight Simulator becomes more stable.

To help maintain this stable environment, batch files automate the sequence: they start and close each program in a consistent, methodical sequence, reinforcing the clean startup conditions the system relies on for stable inter‑module communication.

Gallery

Screenshots of batch file examples, batch file syntax colour table and common batch syntax commands.

Batch Files to Open and Close Flight Simulator

Opening and closing the various files and ancillary programs to operate a flight simulator can be onerous and time consuming.  While there have been several programs released that enable you to launch flight simulator with a press of a key, they seldom work with complicated platforms such as flight decks. 

One of the most commonly used methods to open files and programs is to use the start menu within Windows.  However, this is not without it’s shortcomings, and specialist knowledge is required.  An easy and trouble free approach is to use batch files.

What is a Batch File

A batch file is a script file that stores commands to be executed in a sequential order.  It helps automate routine tasks without requiring user input or intervention. Some common applications of batch files include loading and closing programs, running multiple processes or performing repetitive sequential actions.

Also known as a batch job, a batch file is a text file created in Notepad or some other text editor.  A batch file bundles or packages a set of commands into a single file in serial order.  Without a batch file these commands would have to be presented one at a time to the system from a keyboard.

Usually, a batch file is created for command sequences when a user has a repetitive need.  A command-line interpreter takes the file as an input and executes the commands in the given order.  A batch file eliminates the need to retype commands, which saves the user time and helps to avoid mistakes.  It is also useful to simplify complex processes.

Windows usually uses the .bat extension for batch files.

There are many ways to create a batch file, some are very simplistic and others quite complex. Often there are several strings of sytax that can be used to effectively achieve a similar result. The following are examples.

Writing a Batch File

It's a simple process to write a batch file. 

Prior to beginning, it’s wise to think about the order you want the programs to open, and whether you want a pause between opening particular files and programs.  While a pause is probably not necessary, it’s a good idea as it allows a file or program to complete its opening sequence, prior to the next file or program opening.

When you have completed writing the batch file in notepad save the file with a .bat extension.  To test the batch file double click on the saved .bat extension.

Although others may disagree, MSFS2020 or P3d should be run and the program allowed to settle before opening any batch file or other flight simulator related programs.

The following simplistic examples of batch files are user-specific.  You will need to substitute the file structure with the file structure you are using.

Opening Files and Programs

1. An example of a simplistic batch file to open the main flight simulator computer (server).

@Echo  off

//Alpha Main Server Computer (ALPHA-SERVER-P3)  - 09:38 - 25/08/2023

//ProSim738 V3

//ProSim Ancillary Programs

start /d "D:\Flight Simulator Files\SimStacks October 2021\SimStackSwitchv702" Switch.jar

Timeout 1

start /d "D:\Flight Simulator Files\FS Set Volume" FSSetvol.exe

Timeout 1

start /d "D:\Flight Simulator Files\SimSounds 4.0" SimSounds.exe

Timeout 1

start /d "D:\REX WeatherForce.exe

//ProSim Main Programs

start /d "D:\Flight Simulator Files\ProSim738 V3\ProSimAudio" ProsimAudio.exe

Timeout 1

start /d "D:\Flight Simulator Files\ProSim738 V3\ProSimB738" ProSimB738.exe

2. An example of a batch file to open the avionics suite on the second computer (client 1).

@Echo off

//Client 1 - ProSim-AR B738 Avionics Suite V3    14:07 5/09/20

//PS738 V3

//Ancillary Programs

start /d "C:\Users\user name\Documents\FSF\Programs\MSFS WideFS7" kilo

start /d "C:\Users\user name\Documents\FSF\Programs\Landing Rate Monitor" LRM.exe

start /d "C:\Users\user name\Documents\FSF\Programs\SimSounds 4.0" SimSounds.exe

//Hardware Connector

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\ProSimB738-HardwareConnector" ProSimB738-HardwareConnector.exe

//ProSim737 Displays and Indicators

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\Displays\CAPT PFD" ProsimDisplay.exe

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\Displays\CAPT ND" ProsimDisplay.exe

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\Displays\FO PFD" ProsimDisplay.exe

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\Displays\FO ND" ProsimDisplay.ex

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\Displays\EICAS" ProsimDisplay.exe

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\Displays\FLAPS" ProsimDisplay.exe

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\PS738ChronoCaptain" ProsimDisplay.exe

Timeout 3

start /d "C:\Users\user name\Documents\FSF\ProSim738 V3\ProSimIOS" ProSimIOS.exe

Closing Files and Programs

Likewise, you can also use a batch file to close files and programs sequentially or simultaneously (kill all).

An example of a batch file used to close programs on the main flight simulation computer (server).

@Echo off

//Alpha Main Server Computer (ALPHA-SERVER-P3)  - 09:38 - 25/08/2023

//ProSim738 V3 – closure batch

taskkill /IM wideclient.exe

Timeout  2

taskkill /IM ProSimAudio.exe

Timeout  1

taskkill /IM PMSounds.exe

Timeout 1

taskkill /IM Prosim737.exe

Timeout  4

taskkill /IM fs2020.exe

  • im specifies the image name of the process to be terminated (for example, PMSounds.exe or ProSim737.exe).

  • @echo is the sytax used to determine if a name or message will be displayed on the console when the batch file is executed.  If echo is used by itself it will print whatever follows to the console screen. Echo on/off controls whether the command lines are displayed. The @ sign (as in @echo) located at the beginning of a command line tells the system to not display the command in the console.

  • The // syntax is used to stop the line from being read by the batch file.  Likewise echo and :: can be used.

In the examples, the Taskkill command has been used to close the programs.  Taskkill will cause the program to terminate gracefully, asking for confirmation if there are unsaved changes.

To forcefully kill a process, add the /F option to the command line. Be careful with the /F option as it will terminate all matching processes without confirmation (it does not gracefully close a program).

An example using the /F command is: Taskkill /F /IM ProSimAudio.exe.

There is debate in the computer community to the validity of closing files and programs simultaneously, as ‘killing a program’ may not allow the program enough time to save information it may be saving during the closure process.

For this reason, I'm hesitant to close flight simulator (or other programs) using a closure batch file without a timeout or delay sequence.  Needless to say, it's an easy process to configure a time delay into a batch file to create a delay before closing each program.

Timeouts

Depending upon your computer specifications, some programs may open and close at differing speeds.  If you want a program is open or close before the next program, then a delay sequence will need to be timed into your batch file. 

The timeout command is used to trigger a delay between the programs, enabling any read/write requirements to occur prior to the next program beginning it closure routine.  There are a number of ways to write timeout command. Timeout 1 will cause a one second pause between each command. Timeout /t 5 will cause a pause of five seconds.

Streamlining

Once you have created and saved the batch file, a suggestion is to create a shortcut to the file.  Doing this will enable you to make changes to the batch file such as how the file is executed (minimised or maximised), the position on the screen, colour and font style used (if the script does not already do this), and whether to use an icon for easy identification.  Additionally, by creating a shortcut it enables you to place the shortcut on the computer’s taskbar.

To create a shortcut, right click the batch file and save as a shortcut.

Using Batch Files and ProSim IOS

ProSim-TS IOS screen in opened to network page.  Rather than explain everything, copy the details and use trial and error to achieve your desired result

If you are using multiple computers, you may want to use the ProSim Instructor Operator Station (IOS) to trigger the opening or closure of programs (via the batch file).  When IOS is configured correctly, you will be able to open and close a batch file on one or more networked computers from one computer screen.

To configure IOS, open the network tab, select add a new action or type and select start program.  In the path to executable file on client box type the file address of the batch opening file.  Choose the start option you prefer and ensure that enabled in checked.

To close your programs, open a second action and type in to the path to executable on client box the file address of the batch closure file.

The accompanying image should be self explanatory.

There are other ways to do this, however, this method is probably the simplest.

Caveat

I am not computer technician.  I have used batch files similar to the examples shown for many years without issues.

Final Call

Batch files are but one way to minimise workload and automate the opening and closure of ancillary programs that are used with flight simulator.  The use of IOS to trigger batch files also enables the user to open and close ancillary programs from the one computer screen (instructor station).

Batch Files & Flight-1 Program Launcher - Time Savers

Using Flight Simulator from a flight deck is not as straightforward as many may believe.  Before a flight can commence several programs must be started on two or more computers.  These programs include, but are not limited to; Flight Simulator, ProSim737 (main module, MCP, audio, instructor station, CDU & display modules), FSRAAS, Electronic Flight Bag, WideFS, PM Sounds and so on... 

Although it's not exceptionally time consuming, it does become tiresome using the mouse to activate each program, even if you have shortcuts established on the Microsoft shortcut bar. 

There are numerous methods that can be used to open programs: FSUIPC, WideFS, add on programs such as Flight-1, or a batch file.  However, many virtual pilots lack the necessary skills or confidence to successfully interpret FSUIPC or write a batch file that works the way it's supposed to.

Flight-1 Program Launcher user interface

Flight-1 Program Launcher

Flight-1 Program Launcher is a very easy program that makes starting a flight session exceptionally easy.  In two mouse clicks you can have ALL the required programs opened and ready to use.

Simplicity

The program is standalone, meaning it can reside anywhere on your computer system and does not install into the flight simulator folder directory.  The program interface is very easy to use.

After installation you need to create a list of programs you want the launcher to open.  To do this you click the browse button on the launcher's interface and search for the executable file (.exe) of the target program, and add it to the list and save. 

The Flight-1 Launcher only opens programs, it does not close them

You can select which program starts first, second and so forth....  When you save your preferences a small autostart.cfg file is created in the Flight-1 program folder; this is your preference list (example at left).

Flight-1 launcher - works out of the box

I've been using this nifty program for a few weeks now and have had no issues what-so-ever with it.  It works "out of the box" as designed, and best of all it's shareware!

Flight-1 Program launcher is a free add on available at Flight-1 website.

Writing Your Own Batch File

It's a simple process to bypass the above-mentioned program and write your own batch file.  If you write your own batch file you can also include a batch that closes the programs in addition to opening them.  I've outlined how to make a batch file to close programs.  The same can be done for opening programs but, with different syntax.

  1. Open Notepad ad the editor. Go to "Start" and click on "Accessories." Select "Notepad" from the menu.

  2. Find the file names of the programs you want to close. With the programs running that you want to close, right-click on the task bar and click the "Task Manager" option. Select the "Processes" tab to view a list of file names that are currently running.

  3. Use the "taskkill" command (or whatever command you wish) along with the file names you got from Task Manager. Write a separate command for each file you want to close. Each command line should look like the following example: taskkill /im filename.exe. If one of the programs you are closing is Firefox, the command line would read: taskkill /im firefox.exe.

  4. Save your new application as a .BAT file. Select "Save As" and manually type ".BAT" at the end of the file name you gave to the batch file you just created.

  5. Run the batch file. Double-click on the new application to run it. All the programs you included in the batch file should shut down properly.

A shortcut can then be made to the created file and placed into your shortcut folder.  To edit the batch file, right click the file and select edit.

The syntax required to ensure a batch file works correctly can vary between computer operating systems and your requirements.  I'd recommend a quick search on the Internet to determine the best syntax to use (Google "how to write a opening batch file").

A benefit of using a batch file is that you have to only click one button with your mouse to open or close all the programs required to operate Flight Simulator.

A typical batch file used to open programs is outlined below.  This batch file refers to the main flight simulator computer.

  • @Echo off

  • Echo. Loading software.  ALPHA MAIN COMPUTER (alpha is the name of the computer)

  • start /d "C:\pmSounds" pmSounds.exe

  • TIMEOUT 2

  • start /d "C:\Pro Sim\ProSim737" Prosim737.exe

  • TIMEOUT 9

  • start /d "C:\Pro Sim\ProSimMCP" ProsimMCP.exe

  • TIMEOUT 7

  • start /d "C:\Pro Sim\ProSimAudio" ProsimAudio.exe

  • TIMEOUT 3

  • start /d "C:\FsRaas20" FsRaas20.exe

  • TIMEOUT 2

  • start /d "C:\LOLA" LoLa17.exe

  • TIMEOUT 3

  • start /d "C:\FS10" fsx.exe

Another method of writing the above batch file is outlined below - although the syntax between the batch files is different the outcome is identical.

  • @Echo off

  • Echo. Loading software.  ALPHA MAIN COMPUTER

  • ping -n 2 127.0.0.1 >nul

  • start /d "C:\pmSounds" pmSounds.exe

  • ping -n 2 127.0.0.1 >nul

  • start /d "C:\Pro Sim\ProSim737" Prosim737.exe

  • ping -n 4 127.0.0.1 >nul

  • start /d "C:\Pro Sim\ProSimMCP" ProsimMCP.exe

  • ping -n 2 127.0.0.1 >nul

  • start /d "C:\Pro Sim\ProSimAudio" ProsimAudio.exe

  • ping -n 2 127.0.0.1 >nul

  • start /d "C:\FsRaas20" FsRaas20.exe

  • ping -n 2 127.0.0.1 >nul

  • start /d "C:\LOLA" LoLa17.exe

  • ping -n 2 127.0.0.1 >nul

  • start /d "C:\FS10" fsx.exe

The numeral after TIMEOUT and png -n relates to the number of seconds that must pass before the next program opens. 

For those that are curious, @Echooff triggers a command to prevent the command text from being visible on the screen when the batch file is executed.

Closing Programs - Batch Closure File

The best method to close your simulation dependent programs is to create a closure batch file that closes each program sequentially.

Although it's a simple task to closes programs simultaneously (end processes in Windows Task Manager), there is debate in the computer community to whether killing a program straight-out is a good idea; one school of thought suggests that killing several programs simultaneous may cause problems, if a program is writing files to its file structure and not enough time is allowed for this to be completed.

For this reason, I'm hesitant to close Flight Simulator (or other programs) using a closure batch file without a timeout or delay sequence.  Needless to say, it's an easy process to configure a time delay into a batch file to create a delay before closing each program.

Time-outs

Depending upon your computer specifications some programs may open and close at differing speeds.  If you want to ensure that a program is opened or closed before the next program, then a delay sequence will need to be timed into your batch file.  There are several ways to do this and the syntax varies. 

Below is a typical batch file used to close programs on the main flight simulator computer or server.

  • @Echo off

  • Echo. Closing software.  ALPHA MAIN COMPUTER

  • taskkill /im PMSounds.exe

  • TIMEOUT 3

  • taskkill /im wideclient.exe

  • TIMEOUT 5

  • taskkill /im ProSimAudio.exe

  • TIMEOUT 3

  • taskkill /im ProsimMCP.exe

  • TIMEOUT 5

  • taskkill /im Prosim737.exe

  • TIMEOUT 10

  • taskkill /im FsRaas20.exe

  • TIMEOUT 5

  • taskkill /im LoLa17.exe

  • TIMEOUT 5

  • taskkill /im FSRealTime.exe

  • TIMEOUT 2

  • taskkill /im fsx.exe

The timeout command is used to trigger a delay between the closure of the programs, ensuring that any read/write requirements are able to occur before the next program closes.  The numeral denotes seconds.  The timeout settings on this file are a little long and probably should be shortened.

IM specifies the image name of the process to be terminated.  For example, PMSounds.exe

You will note I've used Taskkill to close the programs.  Taskkill will cause the program to terminate gracefully (1), asking for confirmation if there are unsaved changes. To forcefully kill the same process, add the /F option to the command line. Be careful with the /F option as it will terminate all processes without confirmation or saving of data.

(1)  Information regarding Taskkill obtained from several Internet resources.

I am NOT a computer technician.  The batch files I created for my simulator set-up have worked flawlessly and I am confident, with the correct syntax for your system, they will also work for you. 

If you are like me and tire of opening and closing several programs with a mouse, then try a batch file, or at the very least download and trial the Flight-1 Program Launcher.

Additional Information