title: How to open exe file with parameters
body: <p>I have batch file &amp; vbs file that runs exe application in hidden mode.
  Now I would like to open this exe applicatio, but with parameters passed to it.</p>
  
  <p>Batch file:</p>
  
  <pre><code>wscript.exe "C:\~some path~\invisible2.vbs" "C:\~some path~\Rserve_d.exe"
  </code></pre>
  
  <p><code>invisible2.vbs</code>:</p>
  
  <pre><code>CreateObject("Wscript.Shell").Run """" &amp; WScript.Arguments(0) &amp; """", 0, False
  </code></pre>
  
  <p>Above code makes sure it runs hidden. But now I need to pass this parameter to the <code>Rserve_d.exe</code> when starting it:</p>
  
  <pre><code>--RS-conf "E:\~some path~\Rconf.cfg"
  </code></pre>
  
  <p>Please advise. I've tried with adjustments, but it seems, that there is always something wrong in the syntax. </p>