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

sophie.lu

Upload files to SFTP folder

Hi,
I have question about writing a script to upload all files from a folder saved in my local computer to a SFTP folder. I need the script to schedule automated transfers.

I am new to writing scripts, should I use this example?
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log=c:\path\winscp.log /command "open sftp://username:password@hostname.com/" "put C:\Users\username\Desktop\FolderName\* /" "exit"

Thanks,
sophie