lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: [Mingw-users] stop dos window from opening
- Date: Wed, 25 Jun 2008 22:28:29 +0200
- From: Rob Alblas <r@xxxxxxxxxxxxxxx>
- Subject: ***BOGO*** Re: [Mingw-users] stop dos window from opening
Brian Dessent wrote:
>Ralblas wrote:
>
>
>
>>How can I solve this?
>>1. How to prevent that the program window is minimized together with the
>>command shell?
>>And/Or
>>2. How to prevent that a system call causes a command shell popup?
>>
>>
>
>If you use CreateProcess() directly instead of relying on system() you
>can specify that the process be created detached (dwCreationFlags
>contains DETACHED_PROCESS) without a console....
>
Brian,
This works fine (thanks), except if 2 commands are placed in one line.
E.g. set a temp. environment variable, then execute a program:
set ABC=c:\xyz & foo ifile ofile
With system() this works fine (except for the annoying pop-up).
How to handle double commands like this, using CreateProcess?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users