title: Vmware commands executing batch file
body: <pre><code>net use x: "\\vmware-host\Shared Folders\ShareME"&gt;&gt;logfile.txt 2&gt;&amp;1
  ping -n 11 127.0.0.1 &gt; nul
  x:
  cd "Firefox18"
  call autorun.bat&gt;&gt;logfile.txt 
  cd ../
  exit
  </code></pre>
  
  <p>When I execute the above batch file by double clicking, logfile.txt is generated. But when I use <code>vmrun -T ws -gu &lt;Username&gt; -gp &lt;Password&gt; runProgramInGuest &lt;Vm-Path&gt; &lt;path of Batch File to execute&gt;</code> The scripts runs fine, only the logfile.txt is not generated. 
  This happens only in windows 7. It works fine for Windows XP.</p>