Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to run batch vbs scripts quietly

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report