I was previously using WS_FTP. My personal website has
WS_FTP.LOG files in each folder that I want to delete.
I hope there is a better way than manually going to each of the folders to delete the WS_FTP.LOG file.
What is the best way to delete all of the many WS_FTP.LOG files
scattered throughout my website? Is there a way to search for the
WS_FTP.LOG files on the website then instruct COREFTP to deleted all of them?
Thanks in advance.
dp
HOWTO DELETE all occurances of a specific file
Good suggest. I did as you suggested and added 'DELE WS_FTP.LOG' to my site profile in the PRE TRANSFER COMMANDS and POST TRANSFER COMMANDS areas.
I then Searched my online website from the root directory for all occurances of the file 'WS_FTP.LOG' with recursive enabled.
Next, I right clicked on the results and 'selected all' then again right clicked the results and select 'queue'. The search results appear in the queue window.
Then I right click the queue window area and select 'select all' then right click again and select 'start'. The program attempts to transfer the queue files BUT PRE TRANSFER COMMAND DELE WS_FTP.LOG effectively deletes each of the WS_FTP.LOG files.
Then I repeated the process but this time selected my local hard drive to search and posted the search results into the queue and ran the transfer again... effectively deleting each file with the PRE TRANSFER COMMAND in the site profile script/cmds area.
It works but as you suggested having a 'delete file' command in the ftp search option would probably be more efficient.
Thanks again,
dp
I then Searched my online website from the root directory for all occurances of the file 'WS_FTP.LOG' with recursive enabled.
Next, I right clicked on the results and 'selected all' then again right clicked the results and select 'queue'. The search results appear in the queue window.
Then I right click the queue window area and select 'select all' then right click again and select 'start'. The program attempts to transfer the queue files BUT PRE TRANSFER COMMAND DELE WS_FTP.LOG effectively deletes each of the WS_FTP.LOG files.
Then I repeated the process but this time selected my local hard drive to search and posted the search results into the queue and ran the transfer again... effectively deleting each file with the PRE TRANSFER COMMAND in the site profile script/cmds area.
It works but as you suggested having a 'delete file' command in the ftp search option would probably be more efficient.
Thanks again,
dp