Topic "Status/error code: 2"

Author Message
steve72
[View user's profile]

Joined: 2009-09-09
Posts: 3
Location: Italy
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Hard to answer without knowing a context.
_________________
Martin Prikryl
steve72
[View user's profile]

Joined: 2009-09-09
Posts: 3
Location: Italy
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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
I guess you can just ignore it. The message does not necessarily mean anything went wrong.
_________________
Martin Prikryl
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