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

Author Message
autourdupc
[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 winscp.com version 3.2.1.3020

In the batch file, here is the line where I call WinSCP.com.
C:\ISI\Utils\winscp\winscp.com /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 user:password@example.com
open login:password@my.server.com
# Force binary mode transfer
option transfer binary
# Synchro des dossiers de la destination
synchronize remote -mirror -delete D:ISI\www\www_production\myfolder\ ./
# Dconnexion
close
# Sortie
exit



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

Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License