Download, delete, upload same script?

Core FTP client questions and answers
Post Reply
Dadosix
Posts: 1
Joined: Sun Jun 25, 2017 10:53 pm

Download, delete, upload same script?

Post by Dadosix »

Hello!

I need to automate an ftp series in which:
Log on to ftp server
Download existing .rpt file into\report directory
Delete source file from ftp
Cd local machine to \cds\ directory.
Send any file there to ftp site. *.dat
* optionally, copy file being uploaded tp local directory \archive\
Quit and exit.

I can write a simple upload .bat
And a simple download.but, but i sure cant figure out how to have both live in the same bat or cmd. It's been a long time since I programmed from the cmd line.

Thank you kindly!
Post Reply