Could some one please help me to loop and copy the files using powershell. My requirement is something like this
source inputfile contains:
destination input file contains:
so the script should pick the first line from source file and first line from destination file to run a copy, likewise second line from source and second line from destination and so on....
As a example i have set the path to local drive, my requirement is on network share both the source and destination.
Have gone through the link "http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28061268.html
" which didn't help as the loop is overwriting all the files with the last source file, like C:\xy\456 is replacing all the destination files with the respective name.