The Black Cloud Posted October 19, 2004 Share Posted October 19, 2004 Hi I have one question how to make a choice massagbox YES/NO for install a program in VBSthanks Link to comment Share on other sites More sharing options...
mbouchard Posted October 19, 2004 Share 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 Link to comment Share on other sites More sharing options...
gunsmokingman Posted October 19, 2004 Share 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 Link to comment Share on other sites More sharing options...
The Black Cloud Posted October 20, 2004 Author Share Posted October 20, 2004 Thanks for All Its work nice Link to comment Share on other sites More sharing options...
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