On Fri, 26 Feb 2010, smu johnson wrote:
Hi,
> Can HB_RUN be made to fork a process? For instance, if you tried to run the
> crappy Windows notepad.exe, it wouldn't wait for notepad.exe to terminate
> before you got your prompt back.
> On some text editors, this isn't a concern, like WRITE / WORDPAD.exe... but
> in notepad it is, and I am very curious if something can be done.
Try:
hb_processRun( <cCommand>, [ <cStdIn> ], [ @<cStdOut> ], ;
[ @<cStdErr> ], [ <lDetach> ] ) -> <nResult>
or:
hb_processOpen( <cCommand>, ;
[ @<hStdIn> ], [ @<hStdOut> ], [ @<hStdErr> ]
[ <lDetach> ], [ @<hPid> ] ) -> <hProcess>
hb_processValue( <hProcess>, [ <lWait> ] ) -> <nResult>
hb_processClose( <hProcess>, [ <lGentle> ] ) -> <lResult>
best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour