09-29-2008 08:00 AM
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
09-29-2008 08:08 AM
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
09-29-2008 09:01 AM
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
09-29-2008 09:15 AM
Hi slugger,
i forgot one quotation mark. sorry for that.
Can you upload your vi, or a picture of it?
Mike
09-29-2008 10:20 AM
hi
as i said this works.
ive also included the std output.