LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DOS command

I want to use the system exec command. I already read one answer that is related to my problem but I´m not fully satisfied. My problem is that I want to use parameters in the command line like:

D:\MyFolder>MyApplication file0.fff -i 111.222.333.444 -r

So how do I have proceed to execute this command ?
Thanks
0 Kudos
Message 1 of 3
(3,072 Views)
Hi,
you must use "System exec" with following parameters:
1. Command string - "cmd.exe"
2. Standart input - the string looking like "yourDOScommand Parameters EOL"
3. Working directory is working directory.

Example is attached.

Good luck.

Oleg Chutko.
Message 2 of 3
(3,071 Views)
Frederic - Munchen wrote in news:506500000008000000BBB10000-
1068850981000@exchange.ni.com:

> I want to use the system exec command. I already read one answer that
> is related to my problem but I´m not fully satisfied. My problem is
> that I want to use parameters in the command line like:
>
> D:\MyFolder>MyApplication file0.fff -i 111.222.333.444 -r
>
> So how do I have proceed to execute this command ?
> Thanks
>

I suppose that MyApplication is an application which accepts parameters on
the command line.

Have you tried to write (without quotes)
"MyApplication file0.fff -i 111.222.333.444 -r"
to the "command line" input of the System Exec command.

Check the output of the "standard output" and "standard error" from the
System Exec command t
o see if you get any messages from MyApplication.

--
Rolf
0 Kudos
Message 3 of 3
(3,071 Views)