I have task schedule for backup directory list of wwwroot. For that I have written batch file.
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 > %FolderPath%\DirList_%yyyymmdd%.txt
batch file will do correct at this point but after this
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
Not working well. It does not winzip well and also not send to ftp server.
From forum of Winzip, I found that if you want to run winzip job in batch mode than first time should run manually and winzip open one dialog box. Tick to do not ask again checkbox. so that task scheduler do not wait for prompt.