What error does it respond with when you try to replace the host file?
put a "pause" at the end of your batch file so you have time to read the error message.
Are you going to be using this under users with administrator access, power user or user access?
Under the administrator account it works perfectly to just use the copy command.
If it's prompting for confirmation of the replacement, you can do the following
Code:
copy -y location destination