log reports file does not exist when it does exist.
option batch on option confirm off open sftp://root:XXXXXXXXXXXXXXX@XXXXXXXXXX/ -hostkey="ssh-rsa 2048 MH8TG28sDI1uflPERU+d2kiNTy%2B0b/IXHdYa9EkGfww=" option transfer binary #get /home/vltchdmy/www/* c:\Users\Seth\Documents\ServerBackups\Backups\www\* synchronize local -filemask=|*.cache;*.latest;*index.log.2;*supercache/;IpDweGdIqRq490EE.php c:\Users\Seth\Documents\ServerBackups\Backups /home/vltchdmy exit
@echo off del log.xml "C:\Program Files (x86)\WinSCP\WinSCP.com" /console /script=ServerBackup.txt /xmllog=log.xml if %ERRORLEVEL% neq 0 goto error echo Success C:\Users\Seth\Downloads\SwithMail\SwithMail.exe /s /Param1 "BackupServer" /Param2 "Succeeded" /x C:\Users\Seth\Documents\ServerBackups\SwithmailLog\SwithMailSettings.xml" exit /b 0 :error echo Error! C:\Users\Seth\Downloads\SwithMail\SwithMail.exe /s /Param1 "BackupServer" /Param2 "FAILED" /x "C:\Users\Seth\Documents\ServerBackups\SwithmailLog\SwithMailSettings.xml" exit /b 1
Seth