【发布时间】:2014-06-20 17:19:19
【问题描述】:
使用类似的 VBScript(只是一个示例)
result = MsgBox ("Would you like to install the AntrixAPI?", vbYesNo, "Installing AntrixAPI")
Select Case result
Case vbYes
MsgBox("The API will be installed.")
Case vbNo
MsgBox("The API will not be install.")
End Select
我如何使用它来控制命令行程序。假设用户选择了是。然后,只有当用户选择“是”时,该命令才会转到某个点。 (示例命令)
@echo off
:UserSelectedYes
REM This is where the prompt would go if the user selected yes
wget http://www.example.com/thisisafakedomain/api/antrix
:UserSelectedNo
REM This is where the prompt would go if the user selected no
end
这可能吗?
【问题讨论】:
-
你可以试试this
-
这正是我想要的。 100% 非常感谢你
标签: windows batch-file vbscript