Skip to content

Instantly share code, notes, and snippets.

@mikerodrick
Created November 30, 2018 14:37
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 mikerodrick/4daeec9a3ce5649193077cb5326dfa1a to your computer and use it in GitHub Desktop.
Save mikerodrick/4daeec9a3ce5649193077cb5326dfa1a to your computer and use it in GitHub Desktop.
Move mp4 files based on a list of names
$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