RE: Minimize CMD.EXE

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

Thank you Juergen, but I am running an MS-DOS program to perform a 
connection to our iSeries box to map network drives. You are correct 
that the command window does not pop up when executing a Windows 
application. Ideally I would like to run this command minimized. 

Thanks -
Mike W.



Juergen Luethje wrote:
> 
> 
> 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     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu