Created
August 20, 2012 19:17
-
-
Save kmoormann/3406887 to your computer and use it in GitHub Desktop.
CopyFilesByExtension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Global:CopyFilesInFolder([string] $FromDir, [string] $ToDir, [string] $FileExtension) | |
{ | |
#Destination for files | |
$From = $FromDir + "*" + $FileExtension | |
Copy-Item $From $ToDir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment