Topic "exit code 1 with succesfull transfert in batch script"

Author Message
maxfranco
[View user's profile]

Joined: 2016-06-23
Posts: 2
Location: Florence
i'm using a batch script to transfer a big file (about 20GB)

this is the command i use in the batch file:

winscp.com soyoustart /log="%winscplog%" /command "put %warc-bkup%" "exit"

this is the report of the log file:

. 2016-06-23 01:27:28.811 Transfer done: '\\cscs3\winarc_bkup\CSCWARC_db_201606220200.BAK' [20925847040]
> 2016-06-23 01:27:29.306 Script: exit
. 2016-06-23 01:27:29.320 Script: Exit code: 1
. 2016-06-23 01:27:29.418 Closing connection.
. 2016-06-23 01:27:29.420 Sending special code: 12
. 2016-06-23 01:27:29.426 Sent EOF message


the resulting errorlevel is ever 1.
what i'm doing wrong? Sad
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
See https://winscp.net/eng/docs/faq_exit_code
maxfranco
[View user's profile]

Joined: 2016-06-23
Posts: 2
Location: Florence
sorry for the delay...
the only command that report a status 1 is the exit command, as showed in the log:

Code:
2016-07-11 01:24:00.868 Status code: 0
. 2016-07-11 01:24:00.870 Transfer done: '\\cscs3\winarc_bkup\CSCWARC_db_201607100200.BAK' [20975201792]
> 2016-07-11 01:24:01.240 Script: exit
. 2016-07-11 01:24:01.251 Script: Exit code: 1
. 2016-07-11 01:24:01.435 Closing connection.
. 2016-07-11 01:24:01.436 Sending special code: 12
. 2016-07-11 01:24:01.439 Sent EOF message


can i safely remove the exit command?
but.. why the exit command report an error? all examples i saw used "exit" at the end of the command string.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
It's not the exit command. Show us a complete log file.
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