logo       

Re: Re: Executing an external program: msg#00081

lang.smalltalk.squeak.beginners

Subject: Re: Re: Executing an external program


> So on, Windows, it is best to use FFI (but I don't think
> you can have a blocking mode with this).
>

You can check if a process has exited using FFI on Windows.

First use the kernel32 api CreateProcess to launch the process and
retrieve its handle.

The repeatedly call GetExitCodeProcess to find out whether the process
has exited.


Short sample attached.

fileIn and evaluate (WinProcess runNotepadAndInformWhenDone) to try it
out.

Attachment: WinProcess.st
Description: Text document

_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise