I'm trying to figure out a means to copy a single file from one location on to multiple workstations, but because the workstation names might change I want to put the names in a text file for the batch to take to plunk into the command.
Something like
:start
get computername starting with line 1 from text file
:process
xcopy c:\filename.txt \\%computername%\folder
get next computername from text file
if last computername goto end
goto process
:end
(robocopy might work better for this instead of xcopy)
In the text file will have one column like:
abc
abb
acc
etc...
Any sort of pointers would help greatly.