教我做一个vbs脚本对话框!
答案:3 悬赏:0
解决时间 2021-02-01 20:41
- 提问者网友:斩断情丝
- 2021-02-01 10:19
谁教我做一个脚本对话框!比如说提示'123'回答'456'就运行某一程序!回答错误就运行另一程序
最佳答案
- 二级知识专家网友:心痛成瘾
- 2021-02-01 11:11
----------
set ws=createobject("wscript.shell")
a=inputbox("1+1=?","请回答")
if a="2" then
ws.run "c:\" '正确则打开C盘为例,改为你要运行的程序绝对路径即是运行其它程序.
else
ws.run "d:\" '错误则运行其它程序.
end if
----------
set ws=createobject("wscript.shell")
a=inputbox("1+1=?","请回答")
if a="2" then
ws.run "c:\" '正确则打开C盘为例,改为你要运行的程序绝对路径即是运行其它程序.
else
ws.run "d:\" '错误则运行其它程序.
end if
----------
全部回答
- 1楼网友:深街酒徒
- 2021-02-01 13:27
Dim wsh
set wsh=createobject("wscript.shell")
input=inputbox("123","请回答")
if input="456" then
wsh.run "c:\windows\system32\notepad.exe" '要运行的程序的路径.
else
wsh.run "c:\windows\system32\calc.exe" '回答错误就运行另一程序
end if
- 2楼网友:嗷呜我不好爱
- 2021-02-01 11:48
dim wshshella
set wshshella = wscript.createobject("wscript.shell")
msgbox "你想写啥就写啥",0,"msgbox"
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯