Posted: 2012-11-08 23:45
Is there any possiability to capture the WinSCP.com 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?
winscp.com /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
# Change remote directory
# Download file to the local directory
mv *.pdf C:\Winscp_testing\
# Exit WinSCP
Location: Prague, Czechia
Please read documentation:
You can post new topics in this forum
And it's free!