LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass Command line arguments to an exe created in LV8.0

Hi Friends,
 
I have Created an exe in LV8.0, which accepts the Folder path as input and executes.
I want to call this exe passing the parameter (i.e folder path in my case)  from the command line argument. How to pass arguments to the exe ?
Generally we may be having different types of input parameters to a vi like numeric control, string, boolean etc..If we create an exe that needs three input parameters among which one is boolean, other is string and third is a numeric value.
How to pass these different types of input controls to the exe as parameters in command line at the same time?
 
 
Thanks and Regards,
SODLB
0 Kudos
Message 1 of 4
(3,371 Views)
This topic should give you some pointers - http://zone.ni.com/devzone/cda/epd/p/id/803
George M
National Instruments
0 Kudos
Message 2 of 4
(3,364 Views)

I don't have any experience with the 8.x application builder, but the 7.x one has a checkbox for passing the arguments to the executable.

As for reading them, there should be an example in the example finder (Help>>Find Examples) which shows how to do this. If you want to pass multiple parameters, I suggest you use a structure similar to NAME=VALUE, so that you can parse each element to find the = and then use a case structure to decide what to do with the parameters. This allows your users to enter or not enter any of the switches.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(3,360 Views)
First you have to set in the Build Specifications>>Properties>>Advanced the checkbox named "Pass all commandline arguments to application". In the application use the Property Node App>>Application>>Command line arguments. This will give you an array with an entry for each argument.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 4 of 4
(3,358 Views)