title: Hide Command Prompt
body: <p>I am writing a Visual Basic Script file that is to execute a command line. The script works, but the problem is that when the the command line is executed, <code>cmd.exe</code> remains open. I would like to execute the command line without <code>cmd.exe</code> staying open. I would even be okay with it flashing for a second and then disappearing, but I do not want it to remain. How can I rewrite my program so that the command prompt can still do its thing without showing up? Here's my code for my existing program. I am using this script to schedule a backup with the development build of <a href="http://www.duplicati.com/" rel="nofollow" title="Duplicati">Duplicati 2.0</a>. For security reasons, I have removed the part of the command that starts the backup.</p>
  
  <pre><code>Dim Shell
  Set Shell = CreateObject("Wscript.Shell")
  Shell.Run "cmd.exe /C cd C:\Program Files (x86)\Duplicati"
  </code></pre>