Skip to content

Instantly share code, notes, and snippets.

@jonathlt
Created March 6, 2016 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathlt/1b01ff82fc6b9f0cb8bd to your computer and use it in GitHub Desktop.
Save jonathlt/1b01ff82fc6b9f0cb8bd to your computer and use it in GitHub Desktop.
Recursively copy a folder in powershell
$from = 'payload' #directory under current script directory
$to = 'd:\temp'
Get-ChildItem -Path $from | % {
Copy-Item $_.fullname "$to" -Recurse -Force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment