PDA

View Full Version : Hide that ugly DOS window that flashes up when running a cmd



SteveV
October 13th, 2002, 03:55 PM
From the Windows Start menu select RUN. Then type 'cmd' and press return. Goto Properties under the Control Menu. Change the default Window Position->Top value to be greater than your screen height. Doing this will make the DOS command window for batch files open and run off screen...

Might be a little confusing when (a month later ) you launch a command prompt window for some other use and it's no where to be found.

--Steve

Davros
October 13th, 2002, 03:55 PM
Thought this belonged in here....

From vynce's post in th General forum http://www.girder.nl/phpBB2/viewtopic.php?t=2337

"There is a program that I've used before that can hide console windows. The program's homepage seems to have moved or something (http://www.rebirthing.co.nz/Runfile.html[url]), but I still have it. You can get it here: [url]http://www.vynce.kicks-ass.net/Girder/Runfile.zip.

Use the format:

Runfile cmd=ieventc ... "

You might also like to check out runhide.vbs http://www.fpschultze.de/w5.htm
Thanks,
Dav.

Davros
October 13th, 2002, 03:55 PM
And then there is Mario's Cascio's little trick....

"From the Windows Start menu select RUN. Then type 'cmd' and press return. Goto Properties under the Control Menu. Change the default Window Position->Top value to be greater than your screen height. Doing this will make the DOS command window for batch files open and run off screen. "


So many choices.

Dav.

voducdien
May 15th, 2009, 11:33 AM
The best way to hide DOS screen when executing DOS commands in Windows is by using

WinExec("your command", SW_HIDE);

Vo Duc Dien