0

How can I copy some files and their related folders and subfolders from a "list_of_files.txt" into another folder? I'm looking for a GUI solution which runs under Windows 7 (64 bit).

Example content of the "list_of_files.txt":

E:\archives\2013\06\0test01.pdf
E:\archives\2013\06\ahete.pdf

Example of result needed : (files from E:\ are copied into C:\ok\ ):

C:\ok\archives\2013\06\0test01.pdf
C:\ok\archives\2013\06\ahete.pdf

2
  • 1
    Why do you need a GUI solution specifically? This sounds like one of those things for which the command line is ideally suited, and likely to be more practical.
    – user
    Jul 9, 2013 at 19:52
  • Thanks. I am aware of command line tools. But I always had problems with them because I have to rename my huge amount of files and/or folders to remove accents, symbols or even spaces...I would like to keep my files/folder structure the same. So I assuming a GUI software would be already compatible. Thanks in advance. ;)
    – Erb
    Jul 10, 2013 at 5:50

3 Answers 3

0

You can use:

1
  • Thanks for the suggestions but with TeraCopy I didn't find a way to copy the content of my "list_of_files.txt"(I have many many rows)! Thanks anyway. ;)
    – Erb
    Jul 9, 2013 at 15:29
0

Assuming you have List.txt containing a list of complete paths to files (ensure any paths with spaces are double quoted), the following command run inside your target directory (in your case C:\ok) should do what you want:

for /f "tokens=*" %a in (List.txt) do md ".%~pa" & xcopy "%~a" ".%~pa"
6
  • This fails to answer the question as asked because the OP explicitly wants a GUI solution (now why that requirement, is beyond me).
    – user
    Jul 9, 2013 at 19:51
  • Thanks for your help. Please see my answer above. Thanks. ;)
    – Erb
    Jul 10, 2013 at 5:50
  • @David: I don't quite understand what problems you've had using command line tools in the past. Anyway if you don't find a GUI program you can test the command above and see if it does what you need.
    – Karan
    Jul 10, 2013 at 17:03
  • @Karan: Thanks. ;) I have tried your solution and the files are copied in "C:\user\david\" instead of "C:\ok". Also accents are not copied. And what if I would like to move the files instead of copying them ? Thanks in advance ;)
    – Erb
    Jul 11, 2013 at 7:04
  • As per my answer you had to run the command from the target (i.e. C:\ok), not source directory. Copy List.txt also to the target directory beforehand. I will test with filenames that contain accents and get back to you.
    – Karan
    Jul 11, 2013 at 15:42
-2

this should work this should work trythis:

install, right click tray icon, click enter copy parameters, click import text file, input destination, click ok

http://www.copyhandler.com/

1
  • If you are going to provide a software recommendation it is customary to give a quick summary of the software and why you think it will fix the problem.
    – Mokubai
    Nov 17, 2013 at 23:19

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