title: Open visible window from invisible BAT window on startup
body: <p>I'm writing this little program that prevents scheduled tasks from being added into the system without user's knowledge <a href="https://github.com/DVLP/Unscheduler" rel="nofollow noreferrer">https://github.com/DVLP/Unscheduler</a></p>
  
  <p>Some background about how the program works</p>
  
  <ol>
  <li>install.bat creates a snapshot of current scheduled tasks is being recorded and a new task is being added check.bat to run on each logon</li>
  <li>Every time check.bat runs it fetches list of all scheduled tasks and compares it with snapshot</li>
  <li>When a task is not in snapshot its being displayed on the list</li>
  <li>Now the user can press a number to delete any new entry</li>
  <li>When happy, the user presses "S" to save a new snapshot</li>
  </ol>
  
  <p>That's all</p>
  
  <p>It's all working fine on my computer but in step <strong>2</strong> on each logon a window appears even if no entries are present.</p>
  
  <p>Finally the actual question:</p>
  
  <p>How do I first run it in a hidden way and only display the window (or re-run it visible) when there are new entries detected?</p>
  
  <p>Currently the window is either - running as System - always invisible
  OR running as user - always visible</p>
  
  <p>I know about "runas" but that requires prompting for user password. Everything now works fine without prompting for password so prompting even once during install.bat is not an option.</p>