Hey @Bedrock1977 ,
Try something like this...
$files = Get-Content D:\list.txt
foreach ($file in $files) {
$sourcePath = "d:\source\" + $file + ".txt"
$destinationPath = "d:\destination\"
Move-Item $sourcePath $destinationPath
}
Modify $files to point to your text file with the list of filenames.
$files will be an array of names from the source file.
Then you will loop through the array, dynamically building the source path of the file to
be moved. I assumed all the files were .txt files, so it adds .txt to the end of the name.
Modify $sourcePath by replacing "d:\source" with the current location of the files to be moved. (Including the trailing )
Modify $destination by replacing "d:\destination" with the location you want to move the files to. (Including the trailing )
Mike Rodrick
Edutainer, ITProTV
**if the post above has answered the question, please mark the topic as solved.