I am a really noob when it comes to this kind off stuff. I hope I can ask this question here.
I have a text file containing 200 names of zip files and a folder containing 4000 zip files.
Is there a way to read the .txt
and copy the 200 .zip
files?
I searched and came up with this:
$Files = Get-Content filename.txt
$Dest = "PathTo:\Desired\Folder"
foreach ($File in $Files) {
Copy-Item $File $Dest
}
This is PowerShell
, so I tried that, but I don't have permission or something. So is there a .bat
someone knows?