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
(5,634 Views)

IMG_20160415_183743.JPG

0 Kudos
Message 2 of 8
(5,627 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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 8
(5,599 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
(5,571 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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 8
(5,545 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
(5,532 Views)
It is ok to run .bat with System Exec.vi Thanks for your help
0 Kudos
Message 7 of 8
(5,518 Views)
yes,Its a silly question。haha, now It's done. Thanks for your help.
0 Kudos
Message 8 of 8
(5,508 Views)