find /v “127.0.0.1 www.123.com” <hosts >hosts.new
copy hosts hosts.bak>nul
move hosts.new hosts>nul

 

http://www.bathome.net/thread-29622-1-1.html