Status/error code: 2

Advertisement

steve72
Joined:
Posts:
3
Location:
Italy

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

Reply with quote

Advertisement

steve72
Joined:
Posts:
3
Location:
Italy

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

Reply with quote

martin
Site Admin
martin avatar

Re: Status/error code: 2

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

Reply with quote

Advertisement

You can post new topics in this forum