Get Command Line Arguments VI
- Updated2025-07-30
- 2 minute(s) read
Returns the arguments passed from the command line when LabVIEW or a LabVIEW-built application launched. User-defined arguments start after two hyphens (--) surrounded by spaces in the command line.
If an argument contains double quotation marks ("), this VI returns the argument without the quotation marks.

Inputs/Outputs
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
application name
—
application name returns the name of the application that launched this VI. The application can be LabVIEW or a LabVIEW-built application.
arguments
—
arguments returns the user-defined arguments passed from the command line. User-defined arguments start after two hyphens (--) surrounded by spaces in the command line.
error out
—
error out contains error information. This output provides standard error out functionality. |
For example, if you enter C:\temp\MyLabVIEWApp.exe -- abc 123 TRUE in the command line when launching a LabVIEW-built application, application name returns MyLabVIEWApp.exe and arguments returns an array of the following strings: "abc", "123", "TRUE".
error in (no error)
—
application name
—
arguments
—
error out
—