How to restart the computer with vbs
This article mainly shows you "how to restart the computer vbs", the content is simple and easy to understand, organized clearly, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to restart the computer vbs" this article bar.
Dim return Set R = CreateObject("WScript.Shell") return=MsgBox ("Are you sure you want to restart your computer? ",vbokcancel+ vbClamation," Attention! ") If return=vbok Then R.run ("Shutdown.exe -r -t 0") End if above is"vbs how to achieve computer restart "All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!