I try to delete files on ftp server older than 10 days. How can I do this using command line? I guess that I need loops and functions of getting date from file.
Asked
Active
Viewed 28 times
0
-
What command-line? What is your local OS? – Martin Prikryl Oct 16 '19 at 10:28
-
my local os is windows – Marija Oct 16 '19 at 10:38
-
And what "commandline" do you want to use? Batch file? PowerShell? – Martin Prikryl Oct 16 '19 at 10:44
-
I want to use batch file – Marija Oct 16 '19 at 10:52
-
See [Delete files older than X days from FTP server with PowerShell or batch file](https://stackoverflow.com/q/38616995/850848). – Martin Prikryl Oct 16 '19 at 11:15
-
I am trying to get winSCP on my computer and I hope your previous script will be useful for me! – Marija Oct 16 '19 at 12:28
-
Can you put back your removed answer? – Marija Oct 16 '19 at 12:36
-
I've removed it because I've realized that your question is exact duplicate of the question I've linked above. And my answer to that question contains everything already (including the batch file - it's at the very end). – Martin Prikryl Oct 16 '19 at 12:38
-
okay I understood – Marija Oct 16 '19 at 14:14