Skip to content

Instantly share code, notes, and snippets.

@mikerodrick
mikerodrick / MoveFiles.ps1
Created Nov 30, 2018
Move mp4 files based on a list of names
View MoveFiles.ps1
$files = Get-Content D:\list.txt
foreach ($file in $files) {
$sourcePath = "d:\source\" + $file + ".mp4"
$destinationPath = "d:\destination\"
Move-Item $sourcePath $destinationPath
}