How to realize cmd function with vbs
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!