Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: delete by file type after synchronize

Your code looks ok, you probably just want to exclude the .csv files from the synchronize (use -filemask= for that).
Zombiewhisperer

delete by file type after synchronize

I have no problems sync'ing the files to the server but I need to delete a specific file type in a folder full of other files and leave the rest there. The filename changes with the date so there is no static setting for me to point to. Is there some kind of wildcard delete option where it only deletes specific file types that I can use? Thanks!

Example of script I would like to run:

synchronize remote "D:\Upload\"
put -delete "D:\Upload\*.csv"
exit