Today I need to remotely run a batch file against about 300 workstations. I have a text file with the names of all the workstations. How would you automate that? The command is of the form: batchfile.bat wks1234 Now I could do this: for %%i in (wks0001 wks0002 wks0003 ...) do batchfile.bat %%i but then I'd still have to type in 300 names. How can I run it with each name in the file (1 name per line) automatically with a single command?