Run batch-files without getting console popup windows

0
67

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!

Leave a Reply