Skip to content

Instantly share code, notes, and snippets.

@kmoormann
Created August 20, 2012 19:17
Show Gist options
  • Save kmoormann/3406887 to your computer and use it in GitHub Desktop.
Save kmoormann/3406887 to your computer and use it in GitHub Desktop.
CopyFilesByExtension
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