title: Minimizing or closing a program with batch script
body: <p>I am writing a batch script intended for handling some tasks in my (and a few colleagues) windows startup. The main thing that needs to happen is the killing of a few processes that do to this being a large corporate environment are started as default. They interfere with our work so we have to kill them... I know it's stupid but thats beside the point. This is can not be changed and we have to make due.</p>
  
  <p>I thought about adding some more useful functionality to the script, like starting up certain programs and so on. This all works decently well but the problem i have is that the OUClient won't start minimized. It doesn't open a window (so it is minimized to some extent) but it still appears in the alt-tab list, witch it doesn't when i minimize or close it manually. This is the script:</p>
  
  <pre><code>@echo off
  C:
  cd "C:\Program Files\SysInternals\"
  
  pskill flxps12.exe
  pskill flxps17.exe
  
  start /minimized "" "C:\Program Files\Osiris Data\OUClient\OUClient.exe"
  start "Outlook" "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
  start "Explorer" "C:\Program Files\Internet Explorer\iexplore.exe"
  
  cls
  @exit
  </code></pre>
  
  <p>So the question is: <b>How can I make the OUClient minimize, or even better close</b> to the system tray (like if you clicked the red x in the upper right) after it is started.</p>
  
  <p>We are running this on Windows XP SP2.</p>
  
  <p><b>EDIT: </b>Everything works fine except the /minimize on OUClient.</p>