title: Loop through files in FTP directory using bat file
body: <p>I have a batch file that is executed by a scheduled windows service every 5 minutes. The batch files executes mget for a specific filemask: *.ext.
  After mget it does mdel *.ext.
  Recently I encountered a problem: When a file z.ext gets created between the execution of mget and mdel, that file gets deleted but it was not in the mget. Which off course makes sense.
  So now I am looking for the proper windows ftp commands that will loop through the files and does a mget and mdel file by file.
  Is that possible?</p>