Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

xcopy CSV file includes destination path help

$
0
0

Hi everyone!

I have this code that actually works well:

for /f %a in ('TYPE copy.csv') do copy %a "C:\Path\One\"

The problem is that is very time consuming due to having several folders to copy to.

I need help modding it to follow the set directory inside the "copy.csv"

Filename1 | "C:\Path\One\"

Filename2 | "C:\Path\Two\"

Filename3 | "C:\Path\Three\"

I can change the csv format to anything needed, but I'm totally stuck on how to tell xcopy (or whatever program) to just do what it says to INSIDE my list.

Any thoughts on this would be most appreciated!

Thank you very, very much.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>