Skip to main content

The Matrix Falling Code Effect in Notepad (Fun CMD Trick)

Green code on a screen like the Matrix

Short answer: you can make your screen fill with the green Matrix falling-code effect using a four-line Windows batch file, no software needed. Paste the code into Notepad, save it as a .bat, and run it. Here is the code, how it works, ways to customize it, and how to stop it, all completely harmless.

The Matrix batch code

  1. Open Notepad.
  2. Paste this exactly:
@echo off
color 02
:tricks
echo %random%%random%%random%%random%%random%%random%%random%
goto tricks
  1. Save it as Matrix.bat (choose "All files" as the type so it does not save as .txt).
  2. Double-click the file. Your command window fills with scrolling green numbers.

How it works

  • @echo off hides the command prompt text so only the output shows.
  • color 02 sets the window to black background, green text, the Matrix look.
  • :tricks is a label, and goto tricks loops back to it forever.
  • echo %random%... prints random numbers each loop, creating the falling stream.

Customize it

ChangeHow
Different colorChange 02 (e.g. 0A bright green, 0C red, 0B cyan)
Denser streamAdd more %random% on the echo line
FullscreenPress Alt+Enter while it runs

How to stop it

It loops forever, so to stop it just close the command window, or press Ctrl+C in the window and then any key. Nothing is installed or changed on your system, closing the window ends it completely.

Is it safe?

Yes, entirely. It only prints random numbers in its own window and touches nothing on your PC. This is the non-obvious point about batch "tricks": harmless ones like this just display things, but the same .bat format can run real commands, so only ever run a .bat you wrote or fully understand, never one someone sends you.

Frequently asked questions

How do I make the Matrix effect in Notepad?

Paste the four-line batch code into Notepad, save it as Matrix.bat (All files type), and double-click it. Your window fills with scrolling green numbers.

How do I stop the Matrix batch file?

Just close the command window, or press Ctrl+C in it. Nothing is installed, so closing it ends the effect completely.

How do I change the Matrix color?

Edit the 'color 02' line. For example 0A is bright green, 0C is red, and 0B is cyan.

Is the Matrix batch trick safe?

Yes. It only prints random numbers in its own window and changes nothing. But only run .bat files you wrote or understand, since the format can run real commands.

Comments

Popular posts from this blog

How to Completely Uninstall Programs on Windows (Free Tools and Tips)

Short answer: you do not need a cracked Revo Uninstaller Pro, because Revo has a capable free version and there are free open-source alternatives that remove programs completely, leftover files and registry entries included. Here is how to uninstall cleanly and why leftovers matter. Why leftovers are a problem Windows' built-in uninstaller often leaves behind folders, registry keys and startup entries. Over time these accumulate, clutter your system, and occasionally cause conflicts when you reinstall software. A dedicated uninstaller sweeps them up. Free tools that remove programs completely Revo Uninstaller Free , uninstalls the program, then scans for and removes leftover files and registry entries. The free version covers what most people need. Bulk Crap Uninstaller , free, open source, and excellent for removing many programs at once and cleaning leftovers. How to uninstall cleanly with Revo Free Open Revo and select the program. Click Uninstall; let the progra...

How to Recover Deleted Files for Free (Better Than a Cracked Tool)

Short answer: you do not need a cracked 7-Data Recovery serial, because excellent free tools like Recuva and PhotoRec recover deleted files, and the most important factor is not the software at all, it is stopping use of the drive immediately. Here is how to recover files the safe, effective way. The one rule that decides success: stop using the drive When you delete a file, the data is not erased, the space is just marked reusable. The moment you keep saving new files, you risk overwriting the deleted data permanently. So the instant you realize something is gone: stop using that drive . Do not install recovery software onto it either, download it to a different drive or USB stick. The best free recovery tools Recuva , free, friendly, great for recovering deleted documents, photos and files from Windows drives and USB sticks. PhotoRec , free and open source, extremely powerful, especially for photos and media, though its interface is basic. Windows File History / backups , ...

How to Transfer Contacts Between Phones the Easy Way (2026)

Short answer: The easiest way to move contacts is to sync them to a cloud account first. Save contacts to your Google account on Android or iCloud on iPhone, then sign in to that same account on the new phone and they appear automatically. For everything else, export a vCard (.vcf) file and import it. Every time I set up a new phone the very first thing I want back is my contacts. Years ago this meant fiddly SIM copies and desktop software. These days I almost never touch a cable. Here are the modern methods I actually use, ranked from easiest to most manual. Method 1: Google account sync (best for Android) If your contacts are saved to your Google account rather than the phone itself, switching Android phones is basically automatic. On the old phone, open Settings > Accounts > Google and confirm Contacts sync is on. Wait a minute for the sync to finish, or tap the three-dot menu and choose Sync now . On the new phone, sign in with the same Google account during setup....