title: Adding vbs yes/no box code to a batch file
body: <p>I am trying to add the following yes/no box into a batch file but keep failing.</p>
  
  <pre><code>Set objShell = CreateObject("Wscript.Shell")
  
  intMessage = Msgbox("Would you like to go to URL?", _
      vbYesNo, "Click yes to go to URL")
  
  If intMessage = vbYes Then
      objShell.Run("http://www.url.com")
  Else
      Wscript.Quit
  End If
  </code></pre>
  
  <p>Can anyone point me in the right direction please?</p>