Tried write a script but it does not download the file

Advertisement

francou2021
Joined:
Posts:
2
Location:
Toronto

Tried write a script but it does not download the file

winscp.com.exe sftp://usernamee:password @sftp.servername.com/ -hostkey=*
# Change remote directory
echo cd /folder
# Download file to the local directory 
echo get file.txt c:\Users\user\Download
# Disconnect
echo exit
Not sure what I did wrong

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum