Having list of paths, how can I copy them in a new folder?

Page 2 of 2 FirstFirst 12

  1. Posts : 890
    W10-2009 19042.1348
       #11

    Always a shame when we never get to find out if we helped.
      My Computer


  2. Posts : 16,162
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #12

    mngerhold said:
    Always a shame when we never get to find out if we helped.
    True.
    It would also help others with the same problem who come across this thread,
      My Computer


  3. Posts : 890
    W10-2009 19042.1348
       #13

    We'll probably never know just what he wanted to achieve!
      My Computer


  4. Posts : 16,162
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #14

    mngerhold said:
    We'll probably never know just what he wanted to achieve!
      My Computer


  5. Posts : 5
    Win10
    Thread Starter
       #15

    mngerhold said:
    We'll probably never know just what he wanted to achieve!
    Thanks for answering.

    Well, I have achieved what I wanted. I will post the way I used, soon. Maybe someone will need it someday.

    - - - Updated - - -

    Paul Black said:
    True.
    It would also help others with the same problem who come across this thread,
    I will post the way I used, as you said, it maybe helpful for anyone having this problem :)
      My Computer


  6. Posts : 16,162
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #16

    HussainAlqatari said:
    I will post the way I used, as you said, it maybe helpful for anyone having this problem :)
      My Computer


  7. Posts : 4,091
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu
       #17

    mngerhold said:
    I think the answers so far have assumed you can 'see' in explorer the list of files, no more and no less., but I am going to assume you can't, perhaps because your list is a subset of the source folder contents. So you need (at minimum) a batch file to read the list and copy the items:
    Code:
    for /f "delims=" %%i in (dir.txt) DO (
        xcopy "%%i" "C:\Users\Hussain\Desktop\New folder"
    )
    pause
    where your list of paths is in the file dir.txt. I am new to this particular batch command, but have just tested it with my own list. You need the "delims=" option because you have spaces in the names. The simplest way to create a batch file is to rt-click in an explorer RH pane and select 'New>Text document', but while typing in the name you want, edit the extension to .bat. Then edit the file (Notepad will do) to include my code above, changing the name 'dir.txt' to the name of your list file. Then simply double-click on the .bat file (or rt-click and select 'open') and it should run. Windows may get in your way with warnings!

    Try it and let us know how you get on! hth, Martin
    I think mngerhold and I were the only ones that understand what OP wanted.
    - He has pictures files in H:\New folder (2)\Tube1\All\ sub folders.
    - He has a list (I assume a txt file) of the files in H:\New folder (2)\Tube1\All\ sub folders he has to copy to C:\Users\Hussain\Desktop\New folder.

    What he needs is a batch file that reads every line of the list file and do a copy.
    Example
    copy H:\New folder (2)\Tube1\All\2 6 SDGM Comp 2 HRDH B2 (200 rpm) 1 85 12-07-41 04-05-2020.jpg (source)
    to C:\Users\Hussain\Desktop\New folder (destination)

    So I think that mngerhold batch file will do what OP wanted.
      My Computers


  8. Posts : 1,470
    Windows 10 Pro
       #18

    My brain hurts ....

    So, multiple files in multiple (sub)folders
    A (text) list of only some of those files
    Copy only those files in the list to another single folder

    Correct ?

    To be kept in existing paths/(sub)folders ?
      My Computer


  9. Posts : 1
    Windows 10
       #19

    FastCopy: Paste paths to files, enter destination path, hit enter.

      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:10.
Find Us




Windows 10 Forums