Skip to content

Instantly share code, notes, and snippets.

@MichaelPaulukonis
Created August 5, 2014 15:39
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 MichaelPaulukonis/72a03ad6bc3df5492490 to your computer and use it in GitHub Desktop.
Save MichaelPaulukonis/72a03ad6bc3df5492490 to your computer and use it in GitHub Desktop.
copy docx files for testing
$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