Copy files from a folder based on a file list (text file)

I have a folder with thousands of log files and a text file with a selection of some of those files listed. Is there a way for me to copy the log files listed in the text files out into another folder?

The text files contains the full path and file name like this -

C:\logfiles\log1.txt
C:\logfiles\log2.txt
C:\logfiles\log102.txt
C:\logfiles\log98.txt
C:\logfiles\log63.txt
C:\logfiles\log753.txt
C:\logfiles\log1065.txt

Thanks

Try this command:

I've just downloaded your script and given it a try, works great.

Thanks for helping out and going to the effort of doing that, very appreciated.