Created
March 6, 2016 12:30
-
-
Save jonathlt/1b01ff82fc6b9f0cb8bd to your computer and use it in GitHub Desktop.
Recursively copy a folder in powershell
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
$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