iNfAmOuSeNiGmA
MIS
Im having trouble writing a cmd script trying to copy multiple file onto multiple computers....
All i have so far is... Creating two file one contains a list of workstations and the other is the CMD file.
When i plug in the nessary info it doesn't work????
is there anyone out there who might know of a different way of accomplishing this?????
or maybe im writing this wrong????
Create a list of workstations:
-----wslist.txt------
Workstation1
Workstation2
Workstation3
---------------------
Next, create this batch file:
-----copyIt.cmd------
@echo off
for %%a in (wslist.txt) do (
net use \\%%a\ipc$ /user:administrator password
::where password is equal to the administrator's password
xcopy /i c:\sourcefiles \\%%a\c$\Destination
)
-----------------------
All i have so far is... Creating two file one contains a list of workstations and the other is the CMD file.
When i plug in the nessary info it doesn't work????
is there anyone out there who might know of a different way of accomplishing this?????
or maybe im writing this wrong????
Create a list of workstations:
-----wslist.txt------
Workstation1
Workstation2
Workstation3
---------------------
Next, create this batch file:
-----copyIt.cmd------
@echo off
for %%a in (wslist.txt) do (
net use \\%%a\ipc$ /user:administrator password
::where password is equal to the administrator's password
xcopy /i c:\sourcefiles \\%%a\c$\Destination
)
-----------------------