Created
November 30, 2018 14:37
-
-
Save mikerodrick/4daeec9a3ce5649193077cb5326dfa1a to your computer and use it in GitHub Desktop.
Move mp4 files based on a list of names
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
$files = Get-Content D:\list.txt | |
foreach ($file in $files) { | |
$sourcePath = "d:\source\" + $file + ".mp4" | |
$destinationPath = "d:\destination\" | |
Move-Item $sourcePath $destinationPath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment