I want to execute a script to compile all pdfs into a single folder. My target folder may have the file already. I want to create a script that searches another set of directories for *.pdf and copy them to target, however if the file already exist in the target just delete the source file and leave the target file alone. Is there a way to efficiently script this?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
I think you might be able to do that with robocopy and the right combination of arcane flags but I'd recommend some serious testing. |
|||
|
|
I found this example from this website. You could nest this in a loop which iterates over whatever set of directories you like, passing the filenames into the |
|||
|
C-x M-c M-butterfly... – Iszi Aug 16 '11 at 16:28