LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Read argument from an executable

Solved!
Go to solution

Hi,

 

I want to create and program .exe that can be launch from windows command line.

 

That program will require to read a string argument like a specific COM port.

Let say: ReadBarCodeScanner.exe COM13

 

My program will return what was scanned from the bar code reader on the command line window.

 

How can I create a program that read an argument?

 

 

 

 

 

0 Kudos
Message 1 of 3
(2,536 Views)
Solution
Accepted by JTTest1997

I find the example changeversion which use the argument from the main(int argc ,char *argv[]) to retrieve string from the command line.

 

 

0 Kudos
Message 2 of 3
(2,519 Views)

Handle the argc and arg v variables in the main(int argc, char**argv) function that is the entry point into you software. 

0 Kudos
Message 3 of 3
(1,975 Views)