Code Wrote:@echo off
netsh interface show interface | find "Connected" > nul
if errorlevel 1 goto #
netsh interface set interface "Local Area Connection" disabled
goto end
:#
netsh interface set interface "Local Area Connection" enabled
:end
Just a neat code to turn internet on or off.
To make it...
Open Notepad (or whatever text editor you choose)
Copy/Paste the code
Save it as a .bat file (how to)
(11-15-2012, 04:57 PM)Hirnwirbel Wrote: Or you could just...pull the cable.
Well unless its wireless I guess. But anyway, why would you even want to disable your internet?! That's madness!
It's the trolling art. While in a friend's home, if he/she is going for a drink or something and it's computer is on, you go there and... "mode troll activated".
This could be a good troll. You could tell your friends that it's a cool game you coded and if you're tricking somebody who knows Batch and will inspect the file before running it, there are several programs that convert .bat to .exe