Re: Minimize CMD.EXE

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mike W wrote:

> Does anyone know if there is a way to use system_exec and not have the
> command window pop up? I need the return code from the called program,
> so I don't think I can use any shell code like WIN32Lib's
> shellExecuteEx.

Since you mention Win32Lib, I assume you are writing a _Windows_ program,
right?
Hm... when I call system_exec() in a Windows program (see example below)
using 'exw.exe', the command window does _not_ pop up. I use Win 98/1st
ed. and Euphoria 2.4.

-----------------------[ begin 'test.exw' ]-----------------------
integer x
x = system_exec("calc.exe", 2)     -- calls the Windows calculator
------------------------[ end 'test.exw' ]------------------------

But when I use 'exwc.exe' (a console version of 'exw.exe') instead to
run my program, then the command window pops up.

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |  The difference between men and boys
 \ /  against HTML in       |  is the price of their toys.
  X   e-mail and news,      |
 / \  and unneeded MIME     |  http://home.arcor.de/luethje/prog/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu