Notepad is the most essential text editor for PC, it is used in taking notes, writing codes, etc.
It can be used for doing some fun stuffs too, let me show you tricks of notepad:
The Matrix falling trick :-
Copy and paste the below code in a new notepad and then save it as matrix.bat
@echo off
color 02
:tricks
echo %random%%random%
%random%%random%%random%
%random%%random%%random%
goto tricks
Now run the matrix.bat file by double clicking it and then see the effect.
Continuously eject CD/DVD drive :-
This is a VBS trick which will continuously eject your CD/DVD drive even if you close your drive,it will again pop out till you end the wscript.exe process from the Task Manager.
Copy and paste the below code in a new notepad and then save it as eject.vbs
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
Now run the eject.vbs file and you will see that you CD/DVD drive is popping out even if you close it. To stop this, end the wscript.exe process from Task Manager.
Comments
Post a Comment