Page 1 of 1
how can i hide the DOS window when executing a batch file ?
Posted: 14 Sep 2009 05:12
by suhasmahajan85
how can i hide the DOS window when executing a batch file ?
Posted: 14 Sep 2009 11:04
by avery_larry
You'd probably have to use AT scheduler or something to truly hide it. You can use:
start /b
to exectue a subcommand without a new window, but you'll still have the "parent" window.
You can use:
start /min
to at least start a command window minimized.
Re: how can i hide the DOS window when executing a batch fil
Posted: 21 Sep 2009 15:19
by GeekyGuyJax
suhasmahajan85 wrote:how can i hide the DOS window when executing a batch file ?
Hi,
there is a small utility out there called "RunHiddenConsole". It was
developed to run batch files completely hidden without showing (or
annoying flasing) the console window. You can go to
http://www.msfn.org/board/tool-hide-con ... 49184.html
then register and download it. Works Great btw.
GeekyGuyJax..
Posted: 08 Oct 2009 05:58
by Rage
You can simply convert the bat to an exe using a converter, this brings up no cmd window and has the same effect (at least in what I've tested so far), or you can make a vbs that executes your bat like this:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\path\filename.bat" & Chr(34), 0
Set WshShell = Nothing
Although this means you need both a vbs and a batch file.
Posted: 08 Oct 2009 08:12
by Rage
Does anybody know how to make a batch file open a new cmd subcommand without a window? I already tried;
start cmd /b
that just has the same effect as ;
start cmd
so the /b swich has no effect there the /min does not work either, any ideas?
Posted: 08 Oct 2009 09:06
by Rage
Ah switch in wrong place, its;
start /b cmd /c
This will run a subcommand with no window then terminate when the line has run.