Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to copy file

Status
Not open for further replies.
Oct 30, 2003
10
GB
I have a file that I wish to copy onto every station on my 160 station network.

I believe there is a script I can use to copy this file onto each station (say in C:\newfile).

I'd be grateful if someone could outline this script and how I use it!

Many thanks,
tKF
 
I did just that today with a couple of DOS comands inserted in the login scripts on the DC.

Put the file you want to push out on a common file server network drive everyone has mapped. In my case, the "J:" drive.

Roughly speaking, the script goes like this:

-Set the time
-Map network drives
-Assign printers

rem
rem Push out new file to all PCs
rem
j:
copy file.ext c:\newfile\*.*
c:
rem
rem


Simple as that. Send everyone an email telling them to log out and log back in so you know you've got everyone. When you're satisfied, remove the extra lines of code. If you have multiple login scripts, make sure you edit all of them.

Mike, The IT Guy [morning]

Life is too short to drink warm beer....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top