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

martin

Re: Get & Put with WinSCP

CarterJohn11 wrote:

I'd like to move files from C:\Jobs\AF_SYNC\ and put them in a remote FTP folder. Once uploaded I'd like to delete the file from the C:\Jobs\AF_SYNC\.

Just do
put -delete "C:\Jobs\AF_SYNC\*" "/remote/path/"


In addition I'd like to automate a get or sync between a remote FTP folder and a local C:\Jobs\AF_INPUT\ directory. Is there a way to script this out in WinSCP then save as a batch file that I can schedule?

WinSCP can generate a script template:
https://winscp.net/eng/docs/guide_automation#generating

See also:
CarterJohn11

Get & Put with WinSCP

Hey All,

I'd like to move files from C:\Jobs\AF_SYNC\ and put them in a remote FTP folder. Once uploaded I'd like to delete the file from the C:\Jobs\AF_SYNC\.

In addition I'd like to automate a get or sync between a remote FTP folder and a local C:\Jobs\AF_INPUT\ directory. Is there a way to script this out in WinSCP then save as a batch file that I can schedule?

Some of these files will be pretty large so if possible some checks to make sure it uploaded correctly would be great.
Thank you for any assistance if someone has already done this.