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\
)