Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
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
    
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

4 Answers 4

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

share|improve this answer
    
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

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.

share|improve this answer
    
Thanks but I am more a kind of GUI user. –  Erb Dec 18 '12 at 14:08

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

share|improve this answer
    
Thanks but there is no GUI with it. –  Erb Dec 18 '12 at 14:20

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.

share|improve this answer
    
Thanks. But scripting is too complex for me. –  Erb Dec 18 '12 at 14:21
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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