Top 10 Cool Notepad Commands

Top 10 Cool Notepad Commands

Introduction

Notepad is one of the simplest tools in Windows, but did you know that it can also be used for running some cool tricks and commands? With just a few lines of code, you can create fun scripts, automate tasks, and even play pranks on friends.

Thank you for reading this post, don't forget to subscribe!

In this article, we’ll share the Top 10 Cool Notepad Commands that you can try today. All you need is your Windows PC and the default Notepad app.

🔹 How These Commands Work

  • Open Notepad.
  • Type or paste the command script.
  • Save the file with the right extension (e.g., .bat or .vbs).
  • Double-click the saved file to run it.

⚠️ Note: These commands are safe and just for learning or fun purposes.

1. Matrix Effect Command

This creates a “falling green code” screen, just like in The Matrix movie.

Code:

@echo off
color 0a
:matrix
echo %random%%random%%random%%random%%random%
goto matrix

Save As: matrix.bat

2. Caps Lock Prank

This command makes your Caps Lock key automatically toggle repeatedly.

Code:

Set wshShell = CreateObject("WScript.Shell")
do
wshShell.SendKeys "{CAPSLOCK}"
WScript.Sleep 100
loop

Save As: caps.vbs

3. Open Notepad Forever

This script opens unlimited Notepad windows until you force stop.

Code:

@echo off
:top
start notepad
goto top

Save As: loop.bat

4. Fake Error Message

You can show a custom error message in a popup box.

Code:

x=msgbox("Your PC has been hacked!",0+16,"Error")

Save As: error.vbs

5. Shutdown Timer

This command sets a timer to shut down your PC automatically.

Code:

@echo off
shutdown -s -t 60 -c "Your PC will shut down in 1 minute!"

Save As: shutdown.bat

(To cancel, open Run → type shutdown -a.)

6. Text to Speech Command

Your PC will speak the text you type.

Code:

Dim message
message=InputBox("Enter text to speak:")
Set Sapi=CreateObject("sapi.spvoice")
Sapi.Speak message

Save As: speak.vbs

7. Make a Personal Diary

This creates a secret diary that adds a timestamp every time you open it.

Code:

.LOG

Save As: diary.txt

(Open again and write – each entry is saved with time/date.)

8. Typing Text Automatically

This script keeps typing a sentence repeatedly.

Code:

Set wshShell = CreateObject("WScript.Shell")
Do
wshShell.SendKeys "Hello, this is typing automatically! "
Loop

Save As: typing.vbs

9. CD Drive Open/Close Trick

This command repeatedly opens and closes your CD/DVD drive tray.

Code:

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
loop

Save As: cd.vbs

10. System Information Shortcut

This command opens Windows system details instantly.

Code:

@echo off
start msinfo32

Save As: sysinfo.bat

âś… Safety Tips Before Trying

  • Always save files in a test folder.
  • Use All Files in “Save As” dialog (not .txt).
  • Close the script with Task Manager if it runs endlessly.
  • Do not use these tricks on other people’s computers without permission.

Conclusion

Notepad may look like a very simple program, but it can do a lot of exciting things with just a few lines of code. From fun pranks like fake errors and matrix effect, to useful tricks like text-to-speech and system info shortcuts, these cool Notepad commands make learning more enjoyable.

Try them out, experiment, and you’ll see how powerful Notepad really is!