Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Status/error code: 2

I guess you can just ignore it. The message does not necessarily mean anything went wrong.
steve72

Status/error code: 2

I have a batch file that call winscp.exe /console /script=script.txt /hostkey=...... /log=Path log file
The script script.txt is :
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# open user:password@example.com
# Connect
open XXXXXX@XXXXX.IT
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
cd xxx
cd xxx
put UNC PATH\*.zip (UNC PATH = \\servername\share)
# Disconnect
close
exiT

In log File I have always that message but zip file is trasfered on remote server

Thanks
martin

Re: Status/error code: 2

Hard to answer without knowing a context.
steve72

Status/error code: 2

I use WinSCP to put file zip on server via SFTP.
In log file I always have Status/error code: 2.
What is this message?

Regards