Have batch script as follows:
>>ftp.txt open ftp.site.com
>>ftp.txt username
>>ftp.txt password
>>ftp.txt directoryname
>>ftp.txt quit
ftp -s ftp.txt
How can I delete all files in folder 'directoryname'?
Put the following commands in ftp.txt and run as follows to accomplish this task:
ftp -i -s:ftp.txt
contents of ftp.txt:
open ftp.site.com
username
password
cd directoryname
mdelete *
quit