I have these folders as shown below in the picture:
In the folder “GER”, I have several folders named “BL…”, “BL…”, and so on.
In each “BL…” Folder, I have 1 PDF named “BL…” and several others PDFs named “INV…”, “INV…” and so on…
I need to transfer the “BL…” PDF to the Folder named “BL” and the other PDFs named "INV…" to the folder named “Invoices”. (As shown in the picture)
I need to do that for all the “BL…” Folders in the folder “GER”
NOTE: When I wrote “BL…” or “INV…” means the names are not constant.
For example the “INV…” name can be: “INV21-31483-GER-GOTS”, “INV21-31486-GER-GOTS”,…
Folders “BL…” can be : “BL ACSSFE002956 GER”, “BL ACSSFE003020 GER”, …
Note: The folder “BL” and “Invoices” are empty and created by me. It need not be in the folder “GER”. It can be created on the Desktop too if needed.
use if condition if file Contain BL Move to the file BL Else if Files name contain Invoice Move to the Invoice File first You Get all the file loop it
I hope you get the solution