# DOS Command Popup

**URL:** <https://boards.straightdope.com/t/dos-command-popup/318226>\
**Category:** Factual Questions\
**Created:** [August 23, 2005, 3:49am UTC](https://boards.straightdope.com/t/dos-command-popup/318226 "2005-08-23T03:49:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccwaterback](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@ccwaterback](https://boards.straightdope.com/u/ccwaterback)\
**Post date:** [August 23, 2005, 3:49am UTC](https://boards.straightdope.com/t/dos-command-popup/318226/1 "2005-08-23T03:49:36Z")

</div>

If my XP C/C++ program calls a DOS command through the C language system() function, a DOS window pops up for the duration of the system() execution. Is there any way to keep this DOS window from popping up in the middle of my application?

---

<div class="post-metadata">

**Author:** ![xash](https://avatars.discourse-cdn.com/v4/letter/x/c6cbf5/32.png) [@xash](https://boards.straightdope.com/u/xash)\
**Post date:** [August 23, 2005, 5:42am UTC](https://boards.straightdope.com/t/dos-command-popup/318226/2 "2005-08-23T05:42:10Z")

</div>

See if this helps:

[http://forum.java.sun.com/thread.jspa?threadID=222172&tstart=120](http://forum.java.sun.com/thread.jspa?threadID=222172&tstart=120)

---

<div class="post-metadata">

**Author:** ![xash](https://avatars.discourse-cdn.com/v4/letter/x/c6cbf5/32.png) [@xash](https://boards.straightdope.com/u/xash)\
**Post date:** [August 23, 2005, 5:53am UTC](https://boards.straightdope.com/t/dos-command-popup/318226/3 "2005-08-23T05:53:24Z")

</div>

Or this (although not using C/C++):

> **[Solved: stop dos box from flashing when a .bat is run | Experts Exchange](https://www.experts-exchange.com/questions/21270146/stop-dos-box-from-flashing-when-a-bat-is-run.html)**
>
> Find answers to stop dos box from flashing when a .bat is run from the expert community at Experts Exchange

[http://www.computing.net/dos/wwwboard/forum/14270.html](http://www.computing.net/dos/wwwboard/forum/14270.html)

> **[Solved: how to hide the MS-dos window of an outside dos program in python |...](https://www.experts-exchange.com/questions/21413045/how-to-hide-the-MS-dos-window-of-an-outside-dos-program-in-python.html)**
>
> Find answers to how to hide the MS-dos window of an outside dos program in python from the expert community at Experts Exchange

---

<div class="post-metadata">

**Author:** ![ccwaterback](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@ccwaterback](https://boards.straightdope.com/u/ccwaterback)\
**Post date:** [August 23, 2005, 12:25pm UTC](https://boards.straightdope.com/t/dos-command-popup/318226/4 "2005-08-23T12:25:42Z")

</div>

I like the vbs / bat solution, I’m going to give that a try. Gracias.

---

<div class="post-metadata">

**Author:** ![ccwaterback](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@ccwaterback](https://boards.straightdope.com/u/ccwaterback)\
**Post date:** [August 23, 2005, 11:34pm UTC](https://boards.straightdope.com/t/dos-command-popup/318226/5 "2005-08-23T23:34:26Z")

</div>

To others tuning in late. I hear there is a utility called TweekUI that may help with this problem too.
