I have two folders - and need to copy those that have the same name into another folder. Folder A has 10 files and I need to find the 10 with the same name in Folder B and then copy them to another folder.
Documents in Folder A and B have different extensions. How can I check these two regardless of extension
For Folder A
Assign Array1:Directory.GetFiles(“FolderB Path”)
In For Each Item=Directory.GetFiles(“FolderA Path”)
If Array1.contains(Path.GetFileNameWithoutExtension(Item.Tostring))
Then Copy File else Leave it Blank
I’ll attached a sample as the following. This workflow copy files in Data\A which there is same name in Data\B to Data\Dist folder.
Can you try this?