Skip to content

Instantly share code, notes, and snippets.

@aaomidi
Last active August 29, 2015 14:03
Show Gist options
  • Save aaomidi/89ea93fa0aae014fcd33 to your computer and use it in GitHub Desktop.
Save aaomidi/89ea93fa0aae014fcd33 to your computer and use it in GitHub Desktop.
Remove Advertisements From Skype
@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
@chrisgward
Copy link

Seems a bit overkill to use a batch file to do that ;)

@aaomidi
Copy link
Author

aaomidi commented Jun 27, 2014

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