Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.