0

Do you know a freeware (for Windows 7 64) which can copy a list of files (contained in a txt file) into another folder (folder structure preserved or not) ?

Filelist.txt contents:
M:\DVD1\00\09.pdf
M:\DVD1\00\gethu4.pdf
M:\DVD1\00\djdd85.pdf
M:\DVD1\00\sdffjhgj.pdf
...etc..

Edit: GUI Required. Please please no .bat file script as I had problems with space or special characters with batch solutions I have tried.

5
  • PS: feels like a 'shopping question'. You might want to rewrite it to a slightly different answer.
    – Hennes
    Commented Dec 18, 2012 at 14:03
  • Thanks. I hope it is better now ? ;)
    – Erb
    Commented Dec 18, 2012 at 14:10
  • If you're going to require a GUI, please specify it in your original question. Several people have spent time giving you valid recommendations which you're dismissing because they don't answer a requirement which you failed to specify.
    – alroc
    Commented Dec 18, 2012 at 14:28
  • 1
    Thanks but I have written since the beginning no .bat script. Apparently this is not sufficient so I have added your suggestion with pleasure. Sorry for my errors.
    – Erb
    Commented Dec 18, 2012 at 14:35
  • “Please no .bat file script as I had problems with space or special characters with batch solutions I have tried.” // “We should be careful to get out of an experience only the wisdom that is in it and stop there lest we be like the cat that sits down on a hot stove.  She will never sit down on a hot stove again and that is well but also she will never sit down on a cold one anymore.” —Mark Twain // Just because you had problems with space, etc., with batch solutions that you have tried is no reason to refuse to look at ones that might be better. Commented Apr 25, 2019 at 18:00

4 Answers 4

7

A GUI program is overkill & inefficient. Use Powershell:

Get-Content myfile.txt|Foreach-Object{copy-item -path $_.FullName -destination "path_to_destination"}

This ignores any requirement to maintain directory structure (as you didn't provide such).

Rather than say "please don't tell me the best way to do it, I had problems due to spaces", fix the root cause - learn how to handle the spaces.

2
  • Thanks. But scripting is too complex for me.
    – Erb
    Commented Dec 18, 2012 at 14:21
  • 3
    I gave you the script. You have asked for solutions, you have been given solutions - now you're adding stipulations because they use something you're afraid of. If you are working with Windows in anything but a pure end-user capacity, you pretty much have to learn Powershell to remain relevant over the next few years. It's not complex, spend a couple lunch hours looking at tutorials and you'll get the idea.
    – alroc
    Commented Dec 18, 2012 at 14:26
0

I know you said no batch files, but a simple FOR /F command should do what you want. Type for /? at the command prompt.

3
  • Thanks. I had problems with space or special characters with batch solutions I have tried.
    – Erb
    Commented Dec 18, 2012 at 14:06
  • Spaces can be handled within batch (usually by just wrapping the path in quotes), but batch should have been put out to pasture years ago - Windows has much better scripting engines available now.
    – alroc
    Commented Dec 18, 2012 at 14:16
  • True, but for simple hacks it's pretty good! Commented Dec 18, 2012 at 14:29
0

One solution would be rsync --files-from=filelist.txt.

Rsync is mainly used to copy from one computer to another, but copies to the same computer should also work.

1
  • Thanks but I am more a kind of GUI user.
    – Erb
    Commented Dec 18, 2012 at 14:08
0

XXCOPY might do what you want. (I haven't tried it.)

1
  • Thanks but there is no GUI with it.
    – Erb
    Commented Dec 18, 2012 at 14:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .