Programming Windows

3 Awesome Windows Notepad Tricks You Must Try

Ben Stegner 16-01-2018

You probably don’t think much of Notepad in Windows. Compared to tools like Microsoft Word and third-party text editors and IDEs, it doesn’t really shine for any particular purpose. But that doesn’t mean it’s useless 8 Surprising Windows Notepad Tricks You Must Know The inconspicuous Windows Notepad is full of surprises. You'll want to keep this ancient Windows program handy at all times after we showed you some of the tricks it can do. Read More !


In fact, with a little bit of old-school code in VBScript or even DOS/shell commands, you can write some fun mini-programs. Let’s take a quick look at three of the more interesting ones.

Notepad Trick: Enter the Matrix

Want a budget re-creation of effects from The Matrix on your PC? You can do it with just a few lines. Open up a new Notepad document, then paste in the following code:

@echo off
color 02
echo %random%%random%%random%%random%%random%%random%%random%%random%
goto tricks

Save the file as Matrix.bat. The name isn’t important — just make sure you save it as a BAT batch file How to Create a Batch (BAT) File in Five Simple Steps This article covers how to create a batch file using five simple steps for the Windows operating system. Read More . Then double-click on it wherever you’ve saved it, and you’ll ascend to elite hacker status.

3 Awesome Windows Notepad Tricks You Must Try Matrix Effect BAT

Notepad Trick: Your Computer Talks!

Nowadays, it’s nothing out of the ordinary to hear your PC talk thanks to Cortana and similar tools. But when Windows was new, it was crazy to hear “speech” from your computer. You can relive those moments with Notepad. First, open a new Notepad document and paste this code in:

Dim Message, Speak
Message=InputBox("Enter text","Speak")
Set Speak=CreateObject("sapi.spvoice")
Speak.Speak Message

Save it as Talking.vbs, although the name can be whatever you want. Just make sure it ends in VBS. Double-click on this file and enter some text — you’ll gasp in wonder when your PC speaks it to you!

Notepad Trick: Generate a New PIN

We recommend using a password manager, because keeping unique passwords for every site is tough. But if you still don’t want to use a tool like LastPass 5 Best LastPass Alternatives to Manage Your Passwords Many people consider LastPass to be the king of password managers; it's packed with features and boasts more users than any of its competitors -- but it's far from being the only option! Read More , you can have Windows generate a new code for you.

Unfortunately, this trick only generates a random four or five-digit number. So it’s more suitable for a bank PIN or something of that nature. Paste the following code into a fresh Notepad file:

@echo off
goto 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
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
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
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

Save it as Generator.bat. It’s the same deal as before — the name doesn’t matter as long as it ends in BAT. Double-click it to open, and you’ll see a simple menu. You can choose whether to create one, five, or ten passwords.

3 Awesome Windows Notepad Tricks You Must Try Windows Password Generator BAT

Did you enjoy these Notepad tricks? What other types of mini-programs have you created with VBS or BAT files? Share with us in the comments!

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. typeo
    May 1, 2019 at 8:58 am

    This was a great article ! I want to add this trick, it could be useful too.
    Make a .vbs file and add these lines :

    msgbox("Welcome !")
    msgbox("Nice to meet you")

    you can put this file inside the startup folder and show your messages to users.

    i hope u enjoy it.

  2. Pat
    October 5, 2018 at 2:02 pm

    This is by far one of the most useful and informative sites that I have seen. I have only browsed a few pages but am already blown away by content and how easy it gets information across.
    Truely a top notch sure - I know I will be spending a LOT of time here.

    • Ben Stegner
      October 5, 2018 at 2:11 pm

      Thanks for the kind words, Pat. I hope you enjoy your time reading MUO and learn something valuable!

  3. Shahrzaad Parekh
    January 17, 2018 at 8:44 am

    All you've done is write out some scripts and batch files. None are really tips and tricks for Notepad. So, I'll do your job for you...

    1. Use Notepad as a diary or log
    Start a new file in Notepad and enter .LOG
    (That's a period/full-stop followed by LOG) into the very first line of the file. Give anmae and save the file. Each time you reopen that file, the current Date and Time will be automatically added to the file.

    2. Open Page Setup from File menu and use the following codes in the header and footer fields for the particular purpose:

    &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
    &c Center the characters that follow
    &r Right-align the characters that follow

    3. A very similar article to this was already published - //

  4. Nikolaj O
    January 16, 2018 at 2:04 pm

    i would like to redo the matrix one, instead of the color 02, type in "A" instead, its a bit brighter and more pleasing to look at

  5. Chuck K.
    January 16, 2018 at 10:12 am

    Easy fun shtuff. Since I don't program or am not into that. Cute for people wanting have some fun. Yes you can do this in other ways if you are an expert on the computer, but target audience includes novices and you make it easy to have a bit of fun and guess what? They will learn something too. Poppyq needs to hit a tech site for what he wants to do. I criticize when it's over the top but this right cheer is interesting for people who don't know much about programming. lol

  6. poppyq
    January 16, 2018 at 9:52 am

    How are these Notepad tricks? You could create any of these files with any text editor and get the same results. These are "batch file and VBScript tricks". I expected something like, "Use this keyboard shortcut in Notepad, and it will turn on a super duper status bar."

    • Jonathan Peel
      January 16, 2018 at 12:34 pm

      I agree.
      These are fun script files you can create and run in Windows, they have nothing to do with Notepad, and are definitely not Notepad tricks.