NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute .bat and .ps1 files in teststand?

How to execute powershell script (.ps1) and batch script (.bat) using teststand?

0 Kudos
Message 1 of 4
(1,315 Views)

Hi,

 

For .bat :

 

Add a call executable step.

Select your .bat file in the path as shown below :

RaviShrigiri_0-1645638035477.png

 

Ravi

0 Kudos
Message 2 of 4
(1,267 Views)

For powershell; do the same.  Use a Call Executable step.  Set the step properties to use the powershell.exe and pass in the proper arguments for your powershell script

0 Kudos
Message 3 of 4
(1,193 Views)

What error are you getting?

0 Kudos
Message 4 of 4
(1,160 Views)