title: Calling a batch script from a vbscript script
body: <p>I am trying to call a batch file from VBS, but I keep getting this "object required" error:</p>
  
  <blockquote>
    <p>Line: 4<br>
    Char: 1<br>
    Error: Object Required: 'wshshell'<br>
    Code: 800A01A8<br></p>
  </blockquote>
  
  <p>VBS just won't let me call it, no matter what I do. Here is the code I am currently using:</p>
  
  <pre><code>X=MsgBox("Scan For Malware?",vbYesNo,"InSYS AntiVirus")
  if x=6 Then
  
  wshshell.run "InSys AntiVirus.bat"
  
  End if
  
  if x=7 Then
  wscript.quit
  
  end if
  </code></pre>