@echo off TITLE Hosts COLOR F0 ECHO. :LOOP SET Choice= SET /P Choice="IMPORTANT FI DE ACORD CU ASTA! Apasa Y si apoy ENTER!......? (Y/N)" IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1% ECHO. IF /I '%Choice%'=='Y' GOTO ACCEPTED IF /I '%Choice%'=='N' GOTO REJECTED ECHO Please type Y (for Yes) or N (for No) to proceed! ECHO. GOTO Loop :REJECTED ECHO Your HOSTS file was left unchanged>>%systemroot%\Temp\hostFileUpdate.log ECHO Finished. GOTO END :ACCEPTED SET NEWLINE=^& echo. ECHO Carrying out requested modifications to your HOSTS file FIND /C /I "seenow.ro" %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%>>%WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO 127.0.0.5 eu.seenow.ro>>%WINDIR%\system32\drivers\etc\hosts FIND /C /I "antenaplay.ro" %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%>>%WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO 127.0.0.5 eu.antenaplay.ro>>%WINDIR%\system32\drivers\etc\hosts ECHO Finished. Press "x" Now! GOTO END :END ECHO. ping -n 11 127.0.0.1 > nul EXIT