FTP Batch file - How to delete files form FTP Server

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Doyle
Posts: 1
Joined: 01 Mar 2013 04:43

FTP Batch file - How to delete files form FTP Server

#1 Post by Doyle » 01 Mar 2013 04:57

Hi,
I am trying to replicate files between remote computers via FTP server. I made IN and OUT folders for each computer and it is easy to put and get files with batch file but I need also to remove old files before upload new ones. "mdelete *" does not work because it expects confirmation for every file that I wish to delete. How to overcome this?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: FTP Batch file - How to delete files form FTP Server

#2 Post by foxidrive » 01 Mar 2013 06:26

See if this helps in your script.

>> Turns iteractive mode on or off so that commands on multiple files are executed without user confirmation.
ftp> prompt

Post Reply