Batch copy files from text file list RRS feed

  • Question

  • Hello everyone,

    How could I batch copy all files from a filelist.txt to different directory keeping the folder structure?

    source directory   \\3dserver

    destination dir   \\MyPC

    filelist in text file includes various different filepaths like that:

    \\3DSERVER\3D_Store\Library\3d_library\maps\Stone\granite_white-pearl_TORONTO.jpg      [Map #2141697004:Bitmap]
    \\3DSERVER\3D_Store\library_new\3d\_models\books\maps\book front.jpg      [Map #6:Bitmap]
    \\3DSERVER\3D_Store\library_new\3d\_models\books\maps\book side.jpg      [Map #9:Bitmap]
    \\3DSERVER\3D_Store\library_new\3d\_models\books\maps\book back.jpg      [Map #7:Bitmap]
    \\3DSERVER\3D_Store\library_new\3d\_models\books\maps\pages.jpg      [Map #8:Bitmap]

    • Moved by Bill_Stewart Friday, March 15, 2019 6:44 PM This is not "scripts on demand"
    Tuesday, January 29, 2019 2:07 PM

All replies

  • Use PowerShell and RoboCopy.

    Get-Content <yourfile> |
               RoboCopy $_.Fullname  \\MyPC *.* /S


    • Edited by jrv Tuesday, January 29, 2019 2:30 PM
    Tuesday, January 29, 2019 2:29 PM