Last active
August 29, 2015 14:03
-
-
Save aaomidi/89ea93fa0aae014fcd33 to your computer and use it in GitHub Desktop.
Remove Advertisements From Skype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
color A | |
cls | |
goto checkPermissions | |
:checkPermissions | |
echo Admin permissions required. Detecting permissions | |
net session > nul 2>&1 | |
if %errorLevel% EQU 0 ( | |
echo Success. Administrative permissions confirmed | |
goto removeAds | |
) else ( | |
echo Failure. Please run the batch file as admin. | |
pause | |
) | |
GOTO:EOF | |
:removeAds | |
echo Removing advertisements from Skype! | |
cd %systemroot%/System32/drivers/etc | |
echo 127.0.0.1 apps.skype.com >> hosts | |
echo Advertisements were removed from Skype! | |
goto resetDNS | |
GOTO:EOF | |
:resetDNS | |
ipconfig /flushdns | |
pause | |
GOTO:EOF |
Eh, people are lazy. And its easier to give this to a non techy person :P
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems a bit overkill to use a batch file to do that ;)