Setting multiple variables for one "set" command?



It has been a very long time since my short stint in a windows
scripting class, so I'm not sure if this is even possible, but here
goes...

I'm trying to write a batch file for work. The purpose of the file is
to grab a shortcut from a directory on our server and then copy it to
various computers on the network. Note that we have administrative
shares to the c$ directory on every computer, so obtaining access is
not a problem. In a nutshell, here is what I have so far.

set file="\\server\directory\file.txt"
set computer="pc1527"

copy "%file%" "\\%computer%\c$\Documents and Settings\All Users
\Desktop"

The batch file executes without a problem and copies the file over to
the machine on the network. All machines have that similar naming
scheme (eg: pc1527, pc8359, pc1052 etc, but they are not in numerical
order).

The "file" variable wont have to change at all because we are copying
the same file for every computer. But the "computer" variable I would
like to change after every successful execution of the command. For
instance, after the file is copied to pc1527 i would like it to change
to pc8359, and then on to the next computer until every computer has
the file copied. All of these numbers can be copied over from an
inventory ***, but rather than copying the command over and over to
get the results, I was hoping I could just change the variable to
include the computers I needed.

Is there any way I can do this?

-Bret
.