batch file to copy files to mulitple pcs

Microsoft Windows xp pro with sp3 multil...
April 14, 2010 at 02:50:54
Specs: Windows XP
hi i am looking to write a batch file to copy files from my pc to other pcs on the network
i know how to do this one at a time using

@echo off
xcopy /d /y "C:\Documents and Settings\user\Desktop\newfolder\" "\\pcname\c$\WINDOWS\newfolder"

but i would like to do them all at once i've seen something about computer.txt but i'm not sure how to implement it


See More: batch file to copy files to mulitple pcs

Report •

#1
April 14, 2010 at 15:40:59
This is better posted here for more help:

http://www.computing.net/forum/prog...

Home Page http://ewen.uuuq.com/


Report •

#2
April 14, 2010 at 17:34:25
@echo off & setlocal
for /f "skip=3 tokens=1" %%a in ('net view') do (
if %%a=The goto :xit
xcopy /d /y "C:\Documents and Settings\user\Desktop\newfolder\" "%%a\c$\WINDOWS\newfolder"
)
:xit

Report •
Related Solutions


Ask Question