This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I've attached an example of how to solve this. I tried to include some explanation of what each tool is doing, but if you have questions I will be happy to answer them.
This should work more or less out of the box - you will need to update the Input Data and Output Data tools, replacing \\yourinputpath and \\youroutputpath with the correct input and output locations that you need, but it should otherwise work.