NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a command window, navigate to a folder then run a command line ?

Solved!
Go to solution

Hello,

 

I am trying to create a TestStand step that:

1. open a command window

2. navigate to a folder

3. run a command line (then leave the command window open)

 

It works for 1 and 2 with following Call_settings, but I cannot find a correct Argument Expression for 3 in TestStand.

I want to use /k "python -m hapspt.run" where /k means "run the command and keep the window open" but that "/" will not pass analysis and cause runtime error. If I just use "python -m hapspt.run" , TestStand step only did 1 and 2, but not run 3 (nothing happen)

 

BigDrum_0-1752104562001.png

 

Any suggestions are highly appreciated!

 

 

0 Kudos
Message 1 of 3
(261 Views)
Solution
Accepted by topic author BigDrum

/k is part of the argument, isn't it?

 

So IMHO it should between the double quotes like  "/k python -m hapspt.run" 

0 Kudos
Message 2 of 3
(239 Views)

Yes, it works!

 

Thank you for your help!

0 Kudos
Message 3 of 3
(224 Views)