Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

roraqeni

Downloading non-existent files from an FTP server

I only want to download files that have not previously been downloaded from the FTP server. I am currently using WinSCP. I don't want to go to the console and write code as I want to automate the process in the future. My current code looks like this:
"C:\Program Files (x86)\WinSCP\WinSCP.com"/command ^
     "open ftp://rnan:J13@Files8.cyberlynk.net/kgptel/" ^
     "lcd \D C:\Users\rnan\Desktop\Batch Files" ^
     "get -latest *" ^
     "exit"

This code simply opens a session in the console.
Please suggest changes that automatically transfer files without having to consolidate and enter the code manually.
Thank you.