All pastes #1926845 Raw Edit

CPALead Hosts Block

public text v1 · immutable
#1926845 ·published 2010-08-27 14:27 UTC
rendered paste body
@echo off

IF %(FIND *cpalead* %SystemRoot%\system32\drivers\etc\hosts) = "*cpalead*" GOTO ERROR
ECHO "127.0.0.1 *cpalead*" >> %SystemRoot%\system32\drivers\etc\hosts & echo "Added *cpalead*"
GOTO EXIT0

:ERROR
ECHO "*cpalead* is already applied!"

ECHO "Done."
:EXIT0