Windows Script Host’s Run Method permits to run the .BAT or .CMD files in the invisible mode. It’s very simple and you can do it very easily.
Code:
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "C:\Batch Files\syncfiles.bat" & Chr(34), 0
Set WshShell = Nothing
You have to copy the lines given above and paste that in the notepad. Save this file with .VBS extension. Now you have to edit the name for the .BAT file and the path for it accordingly. Save that file and double click on the .VBS file and this will run that in invisible mode.
Bookmarks