I am trying to write a script in a batch file to fetch the files from SSH server.
Have written the following code. But it does not seem to get the files from the server to my local machine.
Can you please tell me what could be going wrong?
# Automatically answer all prompts negativelly not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with previous
option confirm off
# Change remote directory
# Force binary mode transfer
# Download file to local directory d:\
get gstar_currency.xml d:\
# Exit WinSCP
Where : gstar is the username and the password.
Your assistance would be highly appreciated.