The Black Cloud Posted October 19, 2004 Posted October 19, 2004 Hi I have one question how to make a choice massagbox YES/NO for install a program in VBSthanks
mbouchard Posted October 19, 2004 Posted October 19, 2004 ret = msgbox("Do you want to install x",vbYesNo)If ret = vbYes then Msgbox "Do run command here"Else Msgbox "No Run"End IfYou can remove the else and the msgbox "no run" if you don't care about a no answer.Mike
gunsmokingman Posted October 19, 2004 Posted October 19, 2004 Here Try this Dim sh, arg, r, sys, fsoSet sh = CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")Set oWS = WScript.CreateObject("WScript.Shell") r = msgbox("Message One" & vbcrlf & "Message Two" & vbcrlf & "Message Three.", 35, "The Title On The Bar") if r = 2 then wscript.Quit elseif r = 6 then sh.Run("FILL IN WITH WHAT YOU WANT") else end ifHope This helps
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now