Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

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

Your Answer

 
discard

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.