title: Windows task scheduler can run batch file but not fire command inside for winzip
body: <p>I have task schedule for backup directory list of wwwroot. For that I have written batch file.</p>
  
  <pre><code>for /F "tokens=1-3 delims=: " %%i in ('time /t') do set Hma=%%i%%j%%k
  set yyyymmdd=%date:~10,4%%date:~4,2%%date:~7,2%_%Hma%
  
  set FolderPath=D:\SystemBackup\DirListFiles\
  
  dir c:\inetpub\wwwroot /s /o-d &gt; %FolderPath%\DirList_%yyyymmdd%.txt
  </code></pre>
  
  <p>batch file will do correct at this point but after this</p>
  
  <pre><code>echo "Upload To FTP Start"
  
  cd /d c:\Program Files (x86)\WinZip\
  
  winzip32.exe /autorunjobfile d:\BackupScript\DirList.wjf
  
  echo "Upload FTP Complete !"
  
  cd /d %FolderPath%
  
  del DirList_%yyyymmdd%.txt
  </code></pre>
  
  <p>Not working well. It does not winzip well and also not send to ftp server.</p>