title: How to call a VbScript from a Batch File without opening an additional command prompt
body: <p>I have a VBScript file which I am trying to call from a Batch file. The following code I coped to a notepad and saved as MyScript.vbs</p>
  
  <p>(http://gallery.technet.microsoft.com/scriptcenter/8bbed56f-a7aa-491f-a296-687dd96098a3#content)</p>
  
  <pre><code>    Const HIDDEN_WINDOW = 12 
  
      strComputer = "." 
      Set objWMIService = GetObject("winmgmts:" _ 
                 &amp; "{impersonationLevel=impersonate}!\\" &amp; strComputer &amp; "\root\cimv2") 
      Set objStartup = objWMIService.Get("Win32_ProcessStartup") 
  
      Set objConfig = objStartup.SpawnInstance_ 
      objConfig.ShowWindow = HIDDEN_WINDOW 
      Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process") 
      errReturn = objProcess.Create("Notepad.exe", null, objConfig, intProcessID) 
  </code></pre>
  
  <p>Created a batch file named Run.bat and added the below code in it.</p>
  
  <pre><code>    @echo off
  
      start "C:\\Users\\guest\\Desktop\\123\\MyScript.vbs"
  </code></pre>
  
  <p>When I try to execute the batch file through the command prompt, which opening another command prompt.</p>