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.

  • PS: feels like a 'shopping question'. You might want to rewrite it to a slightly different answer. – Hennes Dec 18 '12 at 14:03
  • Thanks. I hope it is better now ? ;) – Erb Dec 18 '12 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 Dec 18 '12 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 Dec 18 '12 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. – G-Man Says 'Reinstate Monica' Apr 25 '19 at 18:00
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.

  • Thanks. But scripting is too complex for me. – Erb Dec 18 '12 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 Dec 18 '12 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.

  • Thanks. I had problems with space or special characters with batch solutions I have tried. – Erb Dec 18 '12 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 Dec 18 '12 at 14:16
  • True, but for simple hacks it's pretty good! – benshepherd Dec 18 '12 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.

  • Thanks but I am more a kind of GUI user. – Erb Dec 18 '12 at 14:08
0

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

  • Thanks but there is no GUI with it. – Erb Dec 18 '12 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.