Using VBScript To Control A MS-DOS Program
Posted: 20 Jun 2014 12:13
Using a VBScript (just an example) something like
How could I use this to control a MS-DOS program. Let's say the user selected yes. Then the MS-DOS command would go to a certain point only if the user selected yes. (example ms-dos command)
Would this be possible?
Code: Select all
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
How could I use this to control a MS-DOS program. Let's say the user selected yes. Then the MS-DOS command would go to a certain point only if the user selected yes. (example ms-dos command)
Code: Select all
@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
Would this be possible?