View Single Post
Old 06-29-2005, 05:26 PM   #3 (permalink)
bla!!
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

I'm headed home from work, where I use my mac, so here's a copy of the batch file that I would use.

Code:
@echo off

copy /y hosts c:\windows\system32\drivers\etc\
copy /y hosts c:\winnt\system32\drivers\etc\
If you wanted to make it a bit more fool proof, I'd check if Winnt exists vs Windows.

Code:
@echo off

if exist c:\winnt\ (
copy /y hosts c:\winnt\system32\drivers\etc
) else (
copy /y hosts c:\windows\system32\drivers\etc
)
Lastly, if that still doesn't work on your system, you could always rename the file, then copy the new one.

Code:
@echo off

if exist c:\winnt\ (
rename c:\winnt\system32\drivers\etc\hosts hosts.bak
copy hosts c:\winnt\system32\drivers\etc\
) else (
rename c:\windows\system32\drivers\etc\hosts hosts.bak
copy hosts c:\windows\system32\drivers\etc\
)

__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline