get -delete is only moving and deleting one file
I'm trying to move all .xml files from my team's FTP server to our file server everyday and have just started encountering an issue. So everyone knows, this command worked up until 8 days ago for us.
When I run this batch file it will only grab the first file, move it, delete it, then it stops running. If I remove the option then it will move everything over from the FTP server. Can anyone see why it behaves differently with and without the option?
winscp.com /command ^ "option batch on" ^ "option confirm off" ^ "open ftp:<userinfo>" ^ "cd Initial" ^ "option transfer binary" ^ "get -delete *.xml <filepath>" ^ "close" ^ "exit"
When I run this batch file it will only grab the first file, move it, delete it, then it stops running. If I remove the
-delete
-delete