delete by file type after synchronize

Advertisement

Zombiewhisperer
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

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).

Reply with quote

Advertisement

You can post new topics in this forum