title: How to execute cscript using windows task scheduler?
body: <p>The problem: When I double click the .bat file it executes as expected. When I schedule it in Windows Task Scheduler it executes except the line that has cscript.</p>
  
  <p>Content of .bat file:</p>
  
  <pre><code>@echo off
  cls
  
  cscript CSV_To_Excel.vbs c:\tableaudata\test.csv c:\tableaudata\test.xlsx
  echo.file converted &gt;&gt;log.txt
  </code></pre>
  
  <p>What is throwing me off is the fact that log.txt gets created indicating that the .bat file is being executed. But .xlsx is not created. However, on manually double clicking .bat both log.txt and test.xlsx is created.</p>
  
  <p>What could be the problem?</p>