title: How to hide svchost.exe (dos prompt) when executing a scheduled task in Windows
body: <p>I created a java program that will pop up a dialog, and scheduled it as a task. Everything works fine except when the scheduled java program runs and the dialog pops up, there is another window (svchost.exe) hanging behind the dialog box and doesn't go anywhere until the java program finishes its execution. The program is running in Windows XP.</p>
  
  <p>How can I avoid that dos prompt?</p>
  
  <p>Thanks</p>