title: Hide Command Window of .BAT file that Executes Another .EXE File
body: <p>This is a batch file in Windows.</p>
  
  <p>Here is my .bat file        </p>
  
  <pre><code>@echo off
  copy "C:\Remoting.config-Training" "C:\Remoting.config"
  
  "C:\ThirdParty.exe"
  </code></pre>
  
  <p>This works fine except the .bat file leaves the command window open the whole time the "ThirdParty" application is running.<br>
  I need the command window to close. </p>
  
  <p>I would use the short-cut for the application but I must be able to run this copy command first (it actually changes which data base and server to use for the application).  </p>
  
  <p>The ThirdParty application does not allow the user to change the source of the db or the application server.  </p>
  
  <p>We're doing this to allow users to change from a test environment to the production environment.</p>