title: keep command line window open when running scheduled task executing batch file
body: <p>I would like to have the console window kept open when running a scheduled task which executes a batch file. If I run it manually meaning execute the batch file the window stays open but through task scheduler it doesn't open but I can see the task is still running. I put a pause at the end to do this.</p>
  
  <pre><code> @echo off 
   TITLE PROCESS_MGR
   tasklist /FI "IMAGENAME eq JOESMO.exe" | find /I "JOESMO.exe"&gt;nul &amp;&amp;(echo PROCESS 
   JOESMO.exe IS ALREADY RUNNING! 
   echo %DATE%
   echo %TIME%
   pause
   ) || (
   echo JOESMO PROCESS IS NOT RUNNING 
   cmd /c start "JOESMO.exe" "C:\Users\xxxx\Documents\
   Visual Studio 2010\Projects\Projects2013\JOESMO.exe"
   pause)
  </code></pre>
  
  <p>I found this suggestion cmd /k myscript.bat but having creating the task in task scheduler for windows server 2008 I am not sure where to apply this. I added /k to the add arguments box in edit action in task.</p>