0
如果未输入密码,我将如何结束vbs文件,如果单击“好”,它将继续。 如果没有输入任何内容,我希望它结束。 是可能的吗?如何在没有给出条目的情况下结束vbs文件
If InputBox("Please enter the passcode.", "Restricted access") = "Passcode" Then MsgBox "Correct passcode. You may continue.
Dim speaks, speech
name=inputbox("What's your name?", "WELCOME")
speaks=("Welcome ") + name
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks
请参阅'https://stackoverflow.com/a/20539978/6038551'。我假设你知道'WScript.Quit'。 –