13
2
I'm trying to run this command via FTP in order to delete some files I have stored in a folder in my website:
DEL *.csv
However this doesn't work and I don't know why. However if I try to delete every single file this works:
DEL file.csv (works)
How could I do in order to solve this issue?
As a side note, the MS command-line client also supports mput for putting multiple files up at a time (mput *.dll). – Lynn Crumbling – 2012-03-08T15:57:22.723
Thanks, it works fine!!! However if I write MDEL *.csv it asks the confirmation, I would do this automatically without confirmation, how could I do this? – None – 2012-03-08T16:09:36.477
I've not tested it, but you might try putting the
mdel
command (and possibly the "yes" response thatmdel
wants) inside a text file and then using the-s
option to load the ftp commands from the file. – None – 2012-03-08T16:18:54.747Thanks but where should I put the yes response? – None – 2012-03-08T16:23:54.567
4use
prompt
to switch interactive mode off before usingmdel
– MBu – 2012-03-08T16:32:59.083So should I write something like "prompt mdel *.csv" ? – None – 2012-03-08T16:45:17.520
If you're working with ftp interactively, then the
prompt
andmdel
commands would be entered separately. – None – 2012-03-08T17:12:25.540