How to Run Bat File in Background? [Duplicate]
This Question Already Has Answers Here: Closed 11 Year's Ago. Possible Duplicate: Run a Completly Hidden Batch File I Have a Bat File That Open a Window and...
Possible Duplicate:
Run a completly hidden batch file
I have a bat file that open a window and show a lot of information, which bother me a lot. How could I run the bat file in background?
2 Answers
There is a program called HStart (HiddenStart) which does it easily.
hstart /noconsole c:\example.bat
You can find hstart at ntwind.com Hidden Start Utility
Two ways to solve, depending on what you want, check the answers here:
Per @Twisty's request, here's a copy of the solution from this answer:
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "C:\Batch Files\ mycommands.bat" & Chr(34), 0
Set WshShell = Nothing
Put this in a file with .vbs extension, edit the location to your bat file and run .vbs instead.