ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
hi

i am new to ScriptFTP and rather than cover
old ground does anyone have a script to do the following?

- login to ftp server
- change directory to sub folder eg "remote-folder"
- copy the contents to "C:\local-folder" on my PC
- delete the contents of "remote-folder"
- disconnect

?

also:

a) there are around 5000 randomly nammed files created for download each time
the script would run. is this a problem as i have no idea of the file names in advance?

b) can this process be scheduled in any way?

cheers guys!

PT
- login to ftp server
OPENHOST()
- change directory to sub folder eg "remote-folder"
CHDIR()
- copy the contents to "C:\local-folder" on my PC
SYNC()
- delete the contents of "remote-folder"
DELETEFILE()
- disconnect
CLOSEHOST()
a) there are around 5000 randomly nammed files created for download each time
the script would run. is this a problem as i have no idea of the file names in advance?
No, SYNC()
b) can this process be scheduled in any way?
Yes