Could somebody give me an example of how to use both of these? I run the following code:
MyInt2 := ExecProg('C:\datacad\test.bat','test.bat','',myint);
and it returns 1, and nothing happens. But from what i've read, 1 is a good thing. I would expect the batch file to pop open and run (I expect the same from .exe files)
I've also tried the ExecAndWait, and it returns a -1, and again does nothing. Also what is the "Visibility" variable in the ExecAndWait, I can't find any documentation on what integer means what.
Thanks in advance!
Oh yeah, I'm programming form DCAD 9. So no Delphi.
MyInt2 := ExecProg('C:\datacad\test.bat','test.bat','',myint);
and it returns 1, and nothing happens. But from what i've read, 1 is a good thing. I would expect the batch file to pop open and run (I expect the same from .exe files)
I've also tried the ExecAndWait, and it returns a -1, and again does nothing. Also what is the "Visibility" variable in the ExecAndWait, I can't find any documentation on what integer means what.
Thanks in advance!
Oh yeah, I'm programming form DCAD 9. So no Delphi.