There was a problem with the way i gathered info about errorlevel throughout the whole script
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
I'm using a script to synchronize a remote dir with a local one
After executing the script I examine the errorlevel var to see if everything is alright and noticed that errorlevel is set to 1 (or higher) when synchronize says "nothing to synchronize"
winscp /console /script=WinScpPublishAM.txt /log="ftp%0.log" /parameter "%1" >> "%LogFile%"
if errorlevel 1 set Errorsoccured=1
Connecting to www.sg-partners.nl ...
Connected with www.sg-partners.nl. Waiting for welcome message...
Starting the session...
Reading remote directory...
Active session:  email@example.com
Local '\\sngserver02\SNGProducts\LCCAMQM31\INTL' => Remote '/31/beta'
Nothing to synchronize.
Session 'firstname.lastname@example.org' closed.