Move PDF files according to the customer information inside them
Posted on 2016-11-03
We generate invoices for all different customers as per our own invoice numbers. By looking at the invoice numbers, you cannot tell which invoice belongs to which customer. Is there any way, we can setup a powershell script that can go inside the file and check for the customer name like *abc chemicals* and then move that PDF to a folder belonging to ABC chemicals.
I am then planning to write a script that will pull all PDFs from that folder of ABC chemicals and email all those PDFs to the customer.