Created
August 5, 2014 15:39
-
-
Save MichaelPaulukonis/72a03ad6bc3df5492490 to your computer and use it in GitHub Desktop.
copy docx files for testing
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
$sourceDir = "\\path\to\source\" | |
$destDir = "\\path\to\dest\" | |
# NOTE: this WILL overwrite existing docs (unless open) | |
Copy-Item $sourceDir*.docx $destDir | |
# delete (hidden, leftover) office temp files | |
# usually caused by killing processes | |
Remove-Item ~*.docx -force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment