Home » Questions » Computers [ Ask a new question ]

xcopy files into single directory

xcopy files into single directory

I'd like to use xcopy on a Windows machine to pull out all files with .png extension into a single directory.

Asked by: Guest | Views: 311
Total answers/comments: 1
Guest [Entry]

"This can be done with good old for:

for /r C:\Folder %f in (*.png) do @copy ""%f"" C:\png

Nothing fancy."