From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run several adb commands with System Exec.VI

How to run several adb commands with System Exec.VI. Tt is ok when run one adb commadn. My code is showed below.Please help me .Thanks
0 Kudos
Message 1 of 8
(4,475 Views)

IMG_20160415_183743.JPG

0 Kudos
Message 2 of 8
(4,468 Views)

There are two ways to do that:

 

1) create a batch file with these commands and start that from System Exec.

2) use 3 seperate System Exec calls, one for each command.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 8
(4,440 Views)
Could you give me a code example by using the .bat to run commands? i have tried a run System Exec with .bat ,but it is Wrong
0 Kudos
Message 4 of 8
(4,412 Views)

use "cmd /c build.bat", System Exec is not a dos command shell but only a process launch. As such it needs to get an executable as parameter that can be instantiated by Windows. cmd is the DOS command line interpreter.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 8
(4,386 Views)

Possibly a silly question, but are you able to run multiple commands by seperating them with an &?

 

http://digital.ni.com/public.nsf/allkb/4AF9BB1ECC5DD0308625722E00834050

 

I think there was a bug report on the forums recently where this wasn't working on Windows 10 for whatever reason but that is how I normally see this done.

Matt J | National Instruments | CLA
0 Kudos
Message 6 of 8
(4,373 Views)
It is ok to run .bat with System Exec.vi Thanks for your help
0 Kudos
Message 7 of 8
(4,359 Views)
yes,Its a silly question。haha, now It's done. Thanks for your help.
0 Kudos
Message 8 of 8
(4,349 Views)