Re: need to modify lmhosts file for all pc's in network



On Sat, 30 Jul 2005 15:14:57 -0400, "David H. Lipman"
<DLipman~nospam~@Verizon.Net> wrote:

>From: "Greg Mohr" <GregMohr@xxxxxxxxxxxxxxxxxxxxxxxxx>
>
>| That would be great if it were only that simple. I have been told that some
>| of the PC's may have had the file modified already and I can't risk blowing
>| those entries away. So my only solution is to try and append a line to the
>| file that already exists on each PC.
>|
>| Greg
>
>The following will concatenate one file to another using;
>copy file1 + file2 file3
>
>Where file3 is the concatenated version of file1 and file2
>
>UPDATE.CMD
>----------------------
>@echo off
>copy "%windir%\system32\drivers\etc\lmhosts" "%windir%\system32\drivers\etc\lmhosts.old"
>Copy /y c:\lmhosts + "%windir%\system32\drivers\etc\lmhosts.old"
>"%windir%\system32\drivers\etc\lmhosts"
>
>
>Just an idea to keep it simple.

And as an aside, this is exactly the way I've done it in the past.
(Okay, way far past, since we were updating WFW systems....).

Jeff
.



Relevant Pages

  • Re: "Ctrl+V" & ID_EDIT_PASTE & OnEditPaste
    ... > Thanks Jeff. ... > CMainFrame to CMyScrollView? ... Okay, sorry. ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: 3D website
    ... Okay, now that worked! ... > No more pop-up windows and you can even stop the annoying music from ... > - Jeff ... Prev by Date: ...
    (comp.graphics.apps.lightwave)
  • Re: Complicated equation involving imaginaries...
    ... Okay, the relevant quote: ... Jeff ... Prev by Date: ...
    (sci.math.num-analysis)
  • Re: Internal date/time representation
    ... > Like Jeff, I also remember a a recent discussion on this very thing, but I ... "Get recent time/date" ... Okay, 9 days ago. ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • The file *.doc is not available
    ... type of thing is happening when I attempt to open an excel document. ... I did a repair on the office 2000, but I still get these messages. ... Jeff G ... Prev by Date: ...
    (microsoft.public.word.application.errors)