How to run batch vbs scripts quietly
This article is about how to implement vbs scripts that run batches quietly. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Save as .vbs
DIM objShell
Set objShell=wscript.createObject ("wscript.shell")
IReturn=objShell.Run ("cmd.exe / C path / change to batch you need. Bat", 0, TRUE)
2. Continue to save .vbs
On Error Resume next
Set wshshell=createobject ("wscript.shell")
A=wshshell.run ("cmd.exe / C path / change to batch you need. Bat", 0)
3. Continue to save. Vbs
Createobject ("wscript.shell"). Run "path / change to the batch you need. Bat", 0
4. Continue to save. Vbs
Set ws=wscript.createobject ("wscript.shell")
Ws.run "win.bat / start", vbhide
(where win.bat is your own batch name, change it yourself)
Thank you for reading! This is the end of this article on "how to run batch vbs scripts quietly". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!