Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use vbs to realize cmd function

Shulou Source: shulou.com Published: 2022-06-03 19:37:52 11月12日 Update

This article introduces the relevant knowledge of "how to use vbs to achieve cmd function". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

On error resume next

Do while d "520"

D=inputbox ("Please enter commands, multiple commands are connected with &. Close the VB window command 520")

Set q=createobject ("scripting.filesystemobject")

Set a=WScript.CreateObject ("WScript.Shell")

A.run "% Comspec% / c" & d

Loop

And general programs are best not to add on error resume next unless you know very well that the methods of some objects can go wrong.

Even so, it is for error handling.

"how to use vbs to achieve cmd function" content is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Commands functions content more knowledge practical clear successful learning and then even so dilemmas multiple actual objects situations articles methods best cases programs Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Shulou Technology Linux Huawei