Tuesday, July 20, 2010

Recursively Copy Only Files to New Location

Here is a simple command to copy only the files from directories. The downside is that it does not build out the direcotry structure, but that is not what I want to do right now, I just need the files:

Copy-Item -Path C:\Tools\tes*\*.exe -Destination C:\Scripts\test\ -Recurse

No comments: