Powershell script to batch copy and paste file : I am trying to complete a batch file of a few hundred files and copy from source file with many directories into a new file. I am a novice and have just been stumbling around trying to make this work. I would appreciate any comments or suggestions on how to make this work.  I found the script below, but i can not make it work for my purposes:

   

     echo off
        set src_folder=S:\data\010\Files
        set dst_folder=C:\Users\Desktop\test
        for(/f "tokens=*" %%i in file-list.txt DO (
            xcopy /s/e/u "%src_foler%\%%i" "dest_folder%"))

an example of the files in sub folders is:

\leaserecords1\SL0000NQ\LD00GN21.pdf

\leaserecords1\SL0000NZ\LD00I4QX.pdf

\leaserecords1\SL00001F\LD003CQ9.TIF

