Networking Forums

Networking Forums > Computer Networking > Windows Networking > Copy a file across network

Reply
Thread Tools Display Modes

Copy a file across network

 
 
TGF
Guest
Posts: n/a

 
      02-18-2004, 02:40 PM
Hello,

I am trying to make a batch file (or something similar) to copy the
'hosts' file to all of out computers on the network. When we add a machine
or printer to the network, we put the name in the 'hosts' file. We need to
update all of our machines (mixed bag of Win 95,98,2000 and XP) with this
updated file. The problem is, we are not sure how to automate this process.
Some suggestions would be appreciated.


--
TGF


 
Reply With Quote
 
 
 
 
Lanwench [MVP - Exchange]
Guest
Posts: n/a

 
      02-18-2004, 03:43 PM
Are you using a domain model? If so, a) you shouldn't need to do this - WINS
or DNS should be taking care of it for you b) if you want to do this, you
could copy the file to each user's computer via your login script.


TGF wrote:
> Hello,
>
> I am trying to make a batch file (or something similar) to copy
> the 'hosts' file to all of out computers on the network. When we add
> a machine or printer to the network, we put the name in the 'hosts'
> file. We need to update all of our machines (mixed bag of Win
> 95,98,2000 and XP) with this updated file. The problem is, we are
> not sure how to automate this process. Some suggestions would be
> appreciated.



 
Reply With Quote
 
=?Utf-8?B?Sm9obiBVU0dT?=
Guest
Posts: n/a

 
      02-19-2004, 11:46 AM
I'de have to agree with Lanwrench... if your using AD you would update your DNS servers centrally and would not need to push the hosts file out

If you simply must push out the hosts file... just create a .cmd file (equivalent to a batch file) which contains the copy commands needed to push the files out. The copy command under NT, 2000, and XP supports UNC file names to copy accross the network. Something like

copy "c:\windows\system32\drivers\etc\hosts \\remotecomputer\c$\windows\system32\drivers\etc\h osts

should work. Of course you will need have administrative rights to the admin share on the remote systems.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
identify file copy during the network NT Windows Networking 8 01-14-2009 02:34 AM
Cannot copy FILE: The specified network name is no longer available Paul Kus Windows Networking 1 12-06-2005 06:20 PM
File copy always interrupted over wireless network Matrixcubed Wireless Networks 1 02-28-2005 05:00 PM
Network file copy timeout evan b Windows Networking 3 01-04-2005 11:17 AM
Error message trying to copy file over network Chris Falner Windows Networking 1 10-22-2004 04:48 AM



1 2 3 4 5 6 7 8 9 10 11