Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

francou2021

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