Move files from one folder to another from a list of filenames from a text file

Viewed 12088

I have a text file which contains a list of file names with extension(no spaces in the filename). enter image description here

I have two folders in two different paths, say, C:\ThirdParty and C:\Users. There will be subfolders in these paths.

What I need?

I need to search each filename in the text file on these two folders and its subfolders and move the exact matching files to another folders say, C:\Backup\ThirdParty and C:\Backup\Users.

How can i do this in Windows 7 with powershell or command prompt.

I have no idea how to start or I am zero at powershell and DOS commands.

1 Answers
Related