title: How do I run a windows task without flashing a command prompt box BUT still show a dialog box when I need to?
body: <p>I creating a scheduled task in windows using windows command prompt:</p>
  
  <pre><code>schtasks /create /sc minute /mo 30 /tn "javadobe" /tr "\Program Files (x86)\BuildingIntelligence\javadobe\node.exe '\Program Files (x86)\BuildingIntelligence\javadobe\index.js'" /RL HIGHEST
  </code></pre>
  
  <p>Which is telling the command line to run "node index.js" every 30 minutes with the highest running privileges.</p>
  
  <p>In my index.js file, I am checking a remote server for a version number I compare against a local version number.  Now when they are the same, a node prompt window flashes briefly on the screen, which is obnoxious, and I would like to stop.
  However, when the host server uploads a new version of the software, I show a dialog box asking the user if they want to install the update now or later.  I want to keep this functionality.</p>
  
  <p>How can I keep the dialog box popping up but not show the node.js command prompt flashing all the time?  </p>
  
  <p><strong>Things I have tried:</strong></p>
  
  <ol>
  <li><p>I have tried running my script as a service instead of a scheduled task, which keeps the windows command prompt from appearing, but doesn't allow the dialog box to appear to the user (because services run in a different desktop session).</p></li>
  <li><p>In normal windows command prompt, you can start a program minimized, using </p>
  
  <p>START /MIN [application name]</p>
  
  <p>and so I tried changing my /tr argument to "start node index.js /MIN" but that didn't work.  </p></li>
  </ol>
  
  <p>Thanks a bunch in advance for any help!</p>