I need loop through a list of folder that have the same prefix, say (A1, A2,...,A100) and copy my files (from a source folder) to each folder. My try:
FOR %%A IN (*A*) DO (
XCOPY sourceFolder %%A /s/e
)
It doesn't pick the folder, it picks some files with the same prefix (say Annn.zip). I want to avoid this problem too.
Hope you guys help me out, thanks.