LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

system exec.vi issue

hi all

 

i have a dos program, that when run from the dos prompt (called by command.com at windows > run) works with the following syntax:

 

c:\imagecompare.exe c:\file1.bmp c:\file2.bmp

OR

imagecompare.exe file1.bmp file2.bmp

if run from c: in the dos prompt.

 

i have tried every way described of doing it using system exec.vi but nothing seems to work.

when called this way the dos window just sits there with a flasing cursor.

 

so my first question is:

what is the name of the DLL i need for XP to show dos text?

 

i have tested command.com using system exec by the following command line input:

 

command.com /c dir

 

this popped the window up for about a second. but i had no std output. should i have seen output from this vi?  

 

any help would be appreciated

0 Kudos
Message 1 of 5
(3,006 Views)

Hi slugger,

you have to use quotation marks.

 

cmd /c ""C:\imagecompare.exe" "c:\file1.bmp" c:\file2.bmp"" should work for you.

 

Hope it helps.
Mike

0 Kudos
Message 2 of 5
(3,005 Views)

hi mike

 

well tried all that and it still didnt work !!

 

got really annoyed with it and tried the following:

 

created image.bat with the following text inside c:\imagecompare.exe c:\file1.bmp c:\file2.bmp

 

then directly from the command line ran "c:\image.bat"

 

this worked.

 

thanks for pointing me in a direction i hadnt tried

0 Kudos
Message 3 of 5
(2,994 Views)

Hi slugger,

i forgot one quotation mark. Smiley Wink sorry for that.

Can you upload your vi, or a picture of it?

 

Mike

0 Kudos
Message 4 of 5
(2,987 Views)

hi

 

as i said this works.

 

ive also included the std output.

 

 

0 Kudos
Message 5 of 5
(2,972 Views)