Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to copy \some\files to \computer1 \computer2 and \computer3 or better to c:\computerlist.txt

How to do some loops in batch files?

share|improve this question

You can try using a copy utility called xxcopy. it is a 'extended' version of windows's utlity xcopy. Look it up on google, it has numerous options to copy files and folder. It is free for personal use.

share|improve this answer
for %%a in (\\computer1 \\computer2 \\computer3) do (
copy some\files\*.* %%a

If you want to use a text file, then please provide more details about what you want to use it for.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.