This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Execute Multiple Commands With One System Exec Call in LabVIEW

Updated Aug 17, 2023

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

How can I execute multiple commands with a single call to the System Exec VI in LabVIEW for Windows OS?

Solution

Multiple commands can be executed with the System Exec VI by separating the commands with the '&' character. For example, if you wanted to execute ipconfig followed by dir you would call the
System Exec VI with the following line as the Command Line input:
cmd /k ipconfig & dir


Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.