Topic "Not Errorlevel 1 when all seem to be good"

Author Message
[View user's profile]

Joined: 2013-04-03
Posts: 1
Location: France
I all !

I use a batch script to synchronize my local server to a distant Linux server using SFTP protocol.
In the batch file, I use version

In the batch file, here is the line where I call
C:\ISI\Utils\winscp\ /console /script=Synchro.txt /log=logfile.txt
if not errorlevel 1 set ERR=1

This is the Synchro.txt file...
# Rponses automatiques aux demandes de l'application
option batch on
# Pas de confirmations d'crasement de fichiers
option confirm off
# Connexion avec mot de passe
# open
# Force binary mode transfer
option transfer binary
# Synchro des dossiers de la destination
synchronize remote -mirror -delete D:ISI\www\www_production\myfolder\ ./
# Dconnexion
# Sortie

I still get an error...
Note also that logfile is very very long....

Thanks for your help !
EndOfLogFile.txt (5.17 KB) [Download]

Description: This is the end part of the logfile... All process before theses lines have a status code: 1


You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License