Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize cmd function with vbs

Shulou Source: shulou.com Published: 2022-06-03 16:29:17 11月14日 Update

This article focuses on "how to use vbs to achieve cmd function", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "how to use vbs to achieve cmd function"!

Using vbs to realize cmd function

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.

At this point, I believe you have a deeper understanding of "how to use vbs to achieve cmd function", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Function command content method learning practical deeper clear interest multiple practical practical object easy to operate more best friends programs websites channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn macOS NVidia Xiaomi