Re: Delete file older than X days using file name
Did you read my previous post to the end?
*<30D
rm XXXX_XX-%TIMESTAMP-30D#mm-dd-yyyy%-XXXXXXXX.zip
"C:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul /log="C:\Users\xxxx\xxxx\Log\ftp !M !D !Y.log" /command ^
"open ftp://user:pass@example.com/" ^
rm -filemask="*<30D=xxxx_xx-%TIMESTAMP#mm-dd-yyyy%-xxxxxxx.zip"
"exit"