Notepad, the simple text editor built into every Windows PC, is more than just a note-taking tool. Did you know you can use Notepad to create fun pranks, automate tasks, or even test your PC’s security? Yes, using a few lines of commands, you can create interesting things that definitely surprise you. Here in this post, we’ve compiled 20 cool Notepad tricks for Windows 11 2026 that change your experience with Notepad.
Open Notepad: Press Windows + R, type notepad, and hit Enter.
Save with Correct Extensions: Notepad uses .txt by default, but many tricks require .vbs or .bat extensions. When saving, select “All Files (.)” and add the specified extension (e.g., script.vbs).
Run Safely: Some scripts may require admin privileges or affect system behavior. Test on a virtual machine or backup your PC before trying potentially disruptive tricks.
Stop Scripts: To halt .vbs scripts, open Task Manager (Ctrl + Alt + Del), find wscript.exe, and end the process.
Note: Always use these tricks responsibly. Avoid running unverified scripts on critical systems, and respect others’ devices when pranking. Also, create a restore point before apply or trying any tricks on your PC.
Turn Notepad into a Personal Diary with Auto-Timestamps
Want a digital diary that automatically logs the date and time? This easy Notepad command for Windows PC is perfect.
Open Notepad.
Type .LOG (in uppercase) on the first line.
Save as diary.txt and close.
Reopen the file. Notepad will append the current date and time each time you open it, ready for your notes.
It’s Ideal for tracking daily tasks or journaling without extra software. Works on Windows 11 and 10 in 2026.
Create Annoying Pop-Up Messages
This Windows Notepad prank script 2026 displays repeating pop-up messages to surprise (or annoy) your friends. Just copy the code below and paste into Notepad and save it as “anyname.bat” (select “All Files”).
@ECHO off :Begin msg * Hi msg * Are you having fun? msg * I am! msg * Lets have fun together! msg * Because you have been o-w-n-e-d GOTO BEGIN
Double-click to run. Messages will pop up endlessly. Stop it via Task Manager (wscript.exe).
Eject CD/DVD Drive Repeatedly
Make your friend’s CD/DVD drive pop out continuously with this fun Notepad trick to try in 2026.
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.
The drive will eject every 5 seconds. You can stop via Task Manager.
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
Create password protected folder using Notepad
Yes, you can password protect any folder using a simple Notepad trick to secure your important data from others. Type the following code. Instead of “TechaiThreads” written in the code, type in the password of your choice. 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 “TechaiThreads” to move the files and folders you want to protect. Now, a password will be required to open this folder.
No extra software needed for basic file security.
@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%==TechaiThreads 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
Generate Fake Windows Error Messages
With the help of this trick, you can make your friend’s problems and make them worry about their PC. So, you can use this type of trick.
Paste the code into Notepad.
X=Msgbox(“Put your Message Here”,0+16,”Put Title Here”)
You can replace put your message here and put a funny sentence. It will be visible when this error occurred.
Save this file as errors.vbs. Double-click to display the error pop-up.
Test Your Antivirus Software
Did you know, you can test your Anti-virus program with a simple notepad trick? Yes, you can test your Anti-virus effectiveness using the code below simple notepad code.
Save it as test.exe and run the file and check if your antivirus detects it, then your antivirus is working perfectly If not, consider updating or switching software.
Type Text Slowly for Dramatic Effect
This trick will let you type slowly on the screen, and to do so, copy the code below and save it with “anyname.vbs” name. Run to see the text typed slowly in the active window.
Impress friends with a Matrix-style digital rain effect using this fun Notepad trick to try 2026.
Copy the code and paste on Notepad, save as matrix.bat. Run to see random numbers cascade in a green-on-black command prompt.
@echo off color 02 :start echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% goto start
Convert Text to Speech
This is another Cool trick that converts text into an audio file. Just copy the code below and paste it into Notepad and save it as “anyname.vbs”. Run and enter text to hear your PC speak.
Dim message, sapi message=InputBox(“Enter text to speak”,”Text-to-Speech”) Set sapi=CreateObject(“sapi.spvoice”) sapi.Speak message
Notepad Trick Print Tree Root
This trick is one of the Best Notepad tricks that will print out a tree root on your screen. Just copy the code below, paste it into Notepad, and save it as teekids in C: Windows System.
{print tree root}
C:windowssystem
{print C:windowssystemwinlog
4*43″$@[455] 3hr4~
Note: If you want to stop the “.vbs” files, press ALT+CTRL+DEL on your keyboard and open Task Manager, and then the process section, and stop the WScript running file there.
Shutdown the Computer Using Notepad
Did you know that just double-clicking on your Desktop icon can shut down your computer? Yes with this simple notepad trick no need to click on the Start button, then select the shutdown button to turn off your PC. Type the Notepad trick code written below, save the file as ( Anyname.vbs) file, and press it when you need to shut down the system.
@echo off shutdown.exe -s -t 10 cls msg * Shutting down in 10 seconds!
Note: Replace -s with -r for a restart.
Keyboard Dancing Led Light Trick
Open Notepad and enter the following code, and save the file as “LEDDance.vbs.” Once you open the saved file, you will see that all three LED lights of the keyboard will start to blink repeatedly.
Set wshShell =wscript.CreateObject(“WScript.Shell”) do wscript.sleep 100 wshshell.sendkeys “{CAPSLOCK}” wshshell.sendkeys “{NUMLOCK}” wshshell.sendkeys “{SCROLLLOCK}” loop
How To Disable Blinking LED?
1. First, open Task Manager (Ctrl+Alt+Del)
2. Then, go to the process tab.
3. Select wscript.exe
4. Click on the End Process.
Toggle Caps Lock Repeatedly
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.
Set wshShell =wscript.CreateObject(“WScript.Shell”) do wscript.sleep 100 wshshell.sendkeys “{CAPSLOCK}” loop
Now save it as a .vbs file and use it to see the magic.
14: Matrix Effect
This code will give you matrix effect on your screen. Copy the code below and paste it into Notepad and save it as “anyname.bat.”
@echo off :top START %SystemRoot%\system32\notepad.exe GOTO top
It may slow down your PC, so test cautiously.
Customize Notepad’s Header and Footer
Personalize printouts with custom headers and footers.
Open Notepad and go to File > Page Setup.
In the “Header” field, enter codes like &f (file name), &d (date), or &p (page number).
In the “Footer” field, add custom text or codes.
Save and print a file to see the result.
Create a Simple Calculator
Did you know you can build a basic calculator with Notepad? Copy the code and save as calc.vbs. Run to add two numbers via pop-up prompts.
Set WShell = CreateObject(“WScript.Shell”) MsgBox “Enter two numbers to add” a = InputBox(“Enter first number”) b = InputBox(“Enter second number”) sum = CInt(a) + CInt(b) MsgBox “Sum is: ” & sum
Modify the code for other operations like subtraction.
Simulate a Virus Warning
Scare friends with a fake virus alert. Copy the code and save as virus.vbs. Run to show the warning.
Make sure to save the notepad file as .bat file format.
Disable Mouse Temporarily
It would be best if you never tried this on your computer, because this method disables the mouse controls on your computer.
@echo off rundll32.exe mouse,disable
Paste the above code in Notepad and save it as disablemouse.bat on your computer. Re-enable by restarting or running rundll32.exe mouse, enable.
Auto-Press Enter Repeatedly
This trick will let you use the function of the enter button happen again and again. Well, you need to copy and paste the following code into Notepad:
Set wshShell = wscript.CreateObject(“WScript.Shell”) do wscript.sleep 100 wshshell.sendkeys “~(enter)” loop
Save the file as a .vbs file format, double click on it to see the magic. You can stop via Task Manager.
Create a Random Password Generator
Generate strong passwords with this cool Notepad trick. Just copy the code to Notepad, save as password.bat. Run to generate random passwords.
@echo off title Password Generator :Start cls echo Your random password is: %random%%random% echo. echo 1) Generate another echo 2) Exit set /p choice=Choice: if %choice%==1 goto Start if %choice%==2 exit
Simple and practical for securing accounts in 2026.
Backup Your PC: Some scripts can affect system performance or files.
Test in a Safe Environment: Use a virtual machine for risky tricks.
Avoid Malicious Use: Don’t use these hacks to harm others’ devices.
Stay Updated: Windows 11 patches may break some tricks, so check compatibility.
Q: Are these Notepad tricks safe?
A: Most are safe if used responsibly. Avoid tricks that modify system files or require admin access unless you understand the risks.
Q: Do these work on Windows 11? A: Yes, all tricks are tested for Windows 11 and 10 as of January 2026, though some may require tweaks due to updates.
Q: Can I use Notepad to code real programs?
A: Notepad is great for simple scripts (.vbs, .bat) but lacks features for complex coding. Try Notepad++ for advanced programming.
Q: How do I stop a prank script?
A: Open Task Manager (Ctrl + Alt + Del), find wscript.exe or cmd.exe, and end the process.
I am Kelvin Smith, founder of TechAIThreads. I have completed a Bachelor of Arts (BA) and am a Microsoft Certified Professional (MCP). With a strong background in computer applications, I love writing practical guides on Microsoft Windows (11, 10, etc.), Android, cybersecurity, WordPress, and more.