Using batch and Powershell, I would like the script to look in a specific folder, ie c:\folder1\... if it sees a -A in the name of the file, then it need to copy all the files which have -A into a new folder, ie d:\folder2\
It needs to overwrite any files that it already finds in d:\folder2\.
A sample of the file could be 12345 A 8x10.abb
Preferably using robocopy for the actualy copying and overwriting of the files.
Alternatively, the same scenario above, however searching for files ending with -A.abb, and copying those files into the d:\folder2\. A sample of this type of file could be 12345 8x10-A.abb.