Hello,
I am new at creating batch files and am having a bit of trouble. what i am trying to do is build a batch that will basically copy the contents of 3 different files and paste them to a location on my network. i have come up with a CMD line code that will do the job but when i attempt to build this into a batch file it fails on my command. my code i am trying to use is as follows.
for /f %H in (hostnames.txt) do @robocopy /COPYALL /E "\\source" "\\%H\c$\destination"
i want this code to run 3 times copying 3 different files to 3 different locations from 3 different locations. any help would be appreciated. if you need more info feel free to ask.