How to realize the function of cmd multi-command operation with vbs
This article mainly explains "how to use vbs to achieve cmd multi-command running function", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "how to use vbs to achieve cmd multi-command running function" bar!
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.
Thank you for your reading, the above is the content of "how to use vbs to achieve cmd multi-command running function". After the study of this article, I believe you have a deeper understanding of how to use vbs to achieve cmd multi-command running function, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!