Vbscript Opening A Program On A Message Box

[Solved] Vbscript Opening A Program On A Message Box | Vb - Code Explorer | yomemimo.com
Question : Vbscript opening a program on a message box

Answered by : hackoo

Option Explicit
Dim Title,Answer,ws,Site
Site = "https://stackoverflow.com/"
Title = "Open iexplore.exe"
Answer = MsgBox("Did you want to open iexplore.exe ?",VbQuestion+VbYesNo,Title)
If Answer = vbYes Then set ws = CreateObject("wscript.shell") ws.run("iexplore.exe" &" "& Site)
End If
Wscript.Quit()

Source : https://stackoverflow.com/questions/49266067/vbs-script-opening-a-program-on-a-message-box | Last Update : Wed, 24 Aug 22

Answers related to vbscript opening a program on a message box

Code Explorer Popular Question For Vb