Get the App
SLTechnology News&Howtos  ›  Development  › 

How to run batch vbs scripts quietly

Shulou Source: shulou.com Published: 2022-06-03 08:18:39 10月03日 Update

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!

Tags: Path quiet script run content more article good practical name article read knowledge succession reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker Redmi Shulou Tech Info Shulou Information