I'd like to use xcopy on a windows machine to pull out all files with .png extension into a single directory.
I tried
xcopy C:\folder\*.png /s C:\png\
But its keeping the subdirectories inside \folder, (for example in C:\png there is C:\png\a\b\c\img.png) which I don't want. I simply want all .png inside C:\png WITHOUT it retaining the directory structure that was in C:\folder.