@echo off for /f "tokens=2 delims=[]" %%a in ('ver') do set wv=%%a for /f "tokens=1*" %%a in ('echo %wv%') do set wv=%%b if %wv% GEQ 6 goto p1 if not defined APPDATA set APPDATA=%USERPROFILE%\Datos de programa set LOCALAPPDATA=%USERPROFILE%\Configuraci˘n local\Datos de programa if exist "%LOCALAPPDATA%" goto p1 set APPDATA=%USERPROFILE%\Application Data set LOCALAPPDATA=%USERPROFILE%\Local Settings\Application Data :p1 taskkill /im firefox.exe /f ping 127.0.0.1>nul rd "%APPDATA%\Mozilla" /s /q rd "%LOCALAPPDATA%\Mozilla" /s /q :: IE set SN="HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" reg delete %SN% /v AutoConfigURL /f reg add %SN% /v ProxyEnable /d 0 /t REG_DWORD /f reg delete %SN% /v ProxyOverride /f reg delete %SN% /v ProxyServer /f set SN="HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" reg delete %SN% /v DefaultConnectionSettings /f reg delete %SN% /v SavedLegacySettings /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap" /f set SN="HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" reg add %SN% /v "CurrentLevel" /t REG_DWORD /d 0x11000 /f reg add %SN% /v "Flags" /t REG_DWORD /d 0x47 /f reg add %SN% /v "1809" /t REG_DWORD /d 0x0 /f pause exit