Nuno,

you asked on Thu, 13 May 2004 18:20:02 +0100:

Hi, I need to control a dosprompt application from labview; something
like a batch file and I need to see/read the result code.
The purpose is to send a batch command (procmd.exe) to program with a
Microchip PROMATE and record the result message.
Any ideas with LABVIEW7.0 ?

Nuno,
AFAIK the system exec vi has controls to feed data into your batch and get ist results from. Find this vi and look at its help!


There is, however, another way. You may redirect the output of your procmd.exe to a (temporary) file and read&delete this after completion of the exe. Redirection is done like this:
"procmd.exe > c:\procmdresults.txt"
This would write anything that would have been printed on the screen into the file 'c:\procmdresults.txt'.


HTH   and
Greetings from Germany!
--
Uwe Frenz


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dr. Uwe Frenz Entwicklung getemed Medizin- und Informationtechnik AG Oderstr. 59 D-14513 Teltow

Tel.  +49 3328 39 42 0
Fax   +49 3328 39 42 99
[EMAIL PROTECTED]
WWW.Getemed.de




Reply via email to