Topic "Capturing Winscp return code in the script"

Author Message
[View user's profile]

Joined: 2012-11-08
Posts: 11
Hi There,

Is there any possiability to capture the commandline return code?.

I need to fail the automated process based on the return code.

Can some one let me know the answer/sent me a same script which uses the return code? /console /script="C:\Winscp_testing\WinSCP_script.txt" /xmllog="C:\Winscp_testing\log1.xml"

WinScp_Script.txt has the below code:
# Abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
open s
# Change remote directory
cd cps_dev
# Download file to the local directory
mv *.pdf C:\Winscp_testing\
# Disconnect
# Exit WinSCP
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
Please read documentation:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License