title: Embed VBScript inside Windows batch file
body: <p>Is it possible to embed VBScript within a batch file?</p>
  
  <p>I currently have a .CMD file that calls a .VBS file using</p>
  
  <pre><code>cscript //NoLogo MyScript.vbs
  </code></pre>
  
  <p>but I'd prefer to distribute just a single .CMD file.</p>
  
  <hr>
  
  <p><strong>EDIT</strong>: There is a similar question with answers on how to do this without generating an intermediate file at all: <a href="https://stackoverflow.com/questions/9074476">Is it possible to embed and execute VBScript within a batch file without using a temporary file?</a></p>