Forum Post: RE: Running External Process from 4GL on Windows

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
OS-COMMAND SILENT (or OS-COMMAND with no option) launches a shell to execute the command (so, as Simon pointed out, two processes are created) but the shell's console window is hidden. OS-COMMAND NO-CONSOLE launches the process directly without a shell so only one process is created. Both use CreateProcess to do their work. There is a bit of extra overhead using OS-COMMAND NO-CONSOLE as compared to calling CreateProcess directly as an external procedure because OS-COMMAND always checks for the existence of a helper executable even if it's not going to be used. I've made a note to myself to fix that. I believe that INPUT-OUTPUT THROUGH launches a command shell because it's the most reliable way to redirect stdin and stdout on all versions of Windows.

Continue reading...
 
Status
Not open for further replies.
Back
Top