Last active
May 31, 2018 23:51
-
-
Save bradbrowne/f2337b2214d5219cccbf4e9a2f9d52f3 to your computer and use it in GitHub Desktop.
Loop through a text file containing file paths and use Robocopy to copy from source to destination using restartable and other options.
This file contains hidden or 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
gc example.txt | % { robocopy $([System.IO.Path]::GetDirectoryName($_)) .\dst $([System.IO.Path]::GetFileName($_)) /z /w:20 /r:20 /j} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment