title: Running mysql scripts from windows task scheduler / "<" in windows task scheduler
body: <p>I try to execute an sql script with the windows 7 task scheduler:</p>
  
  <pre><code>mysql.exe -uUser -pPass -DmyDB &lt; script.sql
  </code></pre>
  
  <p>So in the task scheduler my script is </p>
  
  <pre><code>"C:\full\path\mysql.exe"
  </code></pre>
  
  <p>and the parameters are </p>
  
  <pre><code>"-uUser -pPass -DmyDB &lt; "C:\full\path\script.sql"
  </code></pre>
  
  <p>The task is executed, but the parameters seems to be ignored. When I remove the '&lt; "C:\full\path\script.sql"' pipe from the parameters, I end with the mysql command line. Is there any way work with "&lt;" in windows task scheduler or any other workaround? </p>