Run batch-files without getting console popup windows

If you want to run batch files then you obviously will not want to get any popup windows of command prompt. Well here’s what you need to do. Copy the following code into a notepad and save it by a name with a .VBS extension.

Set WshShell = CreateObject("WScript.Shell" ) 
WshShell.Run chr(34) & "C:\Users\Dinesh\Documents\batfilename.bat" & Chr(34), 0 
Set WshShell = Nothing

Change the name of the batch file and location and save it anywhere. Opening the VBS file will also run your batch file. You won’t get any popup windows. Enjoy!

By Dinesh Roy

I endorse everyone who is working for a cleaner and greener future. Earth is our home. Let's take care of our family and it's future by boycotting non-renewables as much as we can.

Leave a Reply