title: How to avoid command window popping on cmd.exe
body: <p>I have a command as:</p>
  
  <pre><code>cmd.exe /c ping 1.1.1.1 -n 1 -w 10000 &amp;&amp; echo second command goes here
  </code></pre>
  
  <p>But when executed it opens a command window. Is there a way to avoid the command window from popping up?</p>
  
  <p>PS: I cannot remove cmd.exe from there. As you can see, I am trying to tie two commands one after the other in the same string.</p>
  
  <p>Thanks.</p>
  
  <p><strong>Edit:</strong> Sorry. Its not a bat file. I want to execute 2 commands in the "UninstallString" of msiexec. I was trying so many things that my question got a bit carried away.</p>
  
  <p>The command is:</p>
  
  <pre><code>msiexec &lt;product&gt; &lt;package&gt; &amp;&amp; reg delete /xxx
  </code></pre>