Launching TestStand with an Environment File

Updated Jul 24, 2025

Reported In

Software

  • TestStand

Issue Details

I would like to launch TestStand with a specific environment file on launch, without using the graphical interface. Is this possible?

Solution

TestStand supports launching with a specific environment using a command-line argument. This is useful for automation, recovery from corrupted environments, or switching between configurations.

 

Use the following syntax to launch TestStand with a specific .tsenv file:

 

"C:\Program Files\National Instruments\TestStand 20XX\Bin\SeqEdit.exe" /env "C:\Path\To\YourEnvironment.tsenv"

 

Replace:

  • 20XX with your TestStand version (e.g., 2021)
  • "C:\Path\To\YourEnvironment.tsenv" with the full path to your environment file


To launch TestStand using the global environment, you can either execute SeqEdit.exe without the /env switch or use an empty path as shown below:

 

SeqEdit.exe /env ""

 

For TestStand 2021, to launch an environment file saved within a TestUser user documents as environment.ini:

 

"C:\Program Files\National Instruments\TestStand 2021\Bin\SeqEdit.exe" /env "C:\Users\TestUser\Documents\environment.ini"