How to run a scheduled .bat file in the background / silently


            if you use it once it was created more than once and you know or control the name of the file then you may run it silently/hidden using simple vbscript file. Just paste following script into text editor and save it with ".vbs" extension:

Set WshShell = WScript.CreateObject("WScript.Shell") "%comspec% /c C:\myfile.bat",0
Set WshShell = Nothing

Don’t forget to replace C:\myfile.bat with the actual directory and file, and to run vbscript you need Windows Script 5.6 installed on you computer (assuming you have windows). Check this site and add only .vbs to task scheduler.


This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s