Home Tips and Tricks Top Notepad Tricks You Should Know

Top Notepad Tricks You Should Know

by Snehashis Mukherjee

Notepad was one of the few applications which have included on their every release of Windows, going back to 1.0 to Windows 10. Notepad is extremely minimalist and simple looking general note saving the application. Generally, Notepad files are stored in .txt format, which is an extension of text documents. Well, Notepad is more than a simple editor, you can run different file types in Notepad. Do you know this simple application can destroy your PC, yes literally can destroy your PC with few lines of code in Notepad.

So in this article, I’ll tell you the top 10 Notepad tricks you should know and can try yours on your computer.

1. Create your own Diary on Notepad

his is a simple Notepad trick that will allow you to create a diary in such a format that when you edit or update your notes, it will automatically save your notes with dates and time stamps.

To create Diary on Notepad you should follow these steps-

  • Open Notepad
  • Type.LOG in the first line on Notepad editor.
  • Save the file as [Name].txt
  • Now onwards whenever you edit or update your diary it will automatically save along with the date and time stamps behind the last line you have edited.

So you can create your own Diary on your computer using your basic Notepad without any additional software. Isn’t that cool?

2. Protect File with a password using Notepad

Using this Notepad trick you can able to protect your files and folders in your computer using a password. You just need to write a few lines of code in Notepad to keep your personal data safe and secure using a password from unwanted users. Type the below code on Notepad and save the file as [Name].bat and choose file type as All files (*) above the save button and save the file. Double click on the file and your private folder will be created on your location in which you can store files folders which you want to protect. To access those files you need to type your password.
Change the geeksteps from the code that will be your password.

@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%==geeksteps 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

3. Matrix Effect

Probably most of you have seen the movie “Matrix”, if you have seen this movie then you might have noticed a string of green character at the screen randomly. If you haven’t seen that seen no problem by writing few lines of code you can generate a string of characters on your screen.
To create Matrix effects do the following steps-

  • Open Notepad
  • Copy the below code on Notepad window
  • Save the file as [Name].bat
  • Double click on the file to run the file.

@echo off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %rando m% %random% %random% %random%
goto start

4. Shutdown Computer

I know, that you know how to shut down your computer. But don’t you feel bored by doing a long process? By writing a few lines of code you can shut down your computer by double-clicking the file, as well as you can display a message whatever you want before turning off your computer.
To create shutdown file you need to follow below steps-

  • Open Notepad
  • Copy the below code on Notepad window
  • Save the file as [Name].vbs
  • Double click on the file to run the file.

@echo off
msg * Computer will now shut down
shutdown -c “Sweet Dreams. Take care.” –s

5. Text to Speech using Notepad

This is one of the cool features of Notepad that you can access. Whatever you type your computer will speak all those, to do this you just need to do the following steps-

  • Open Notepad
  • Copy the below code on Notepad window
  • Save the file as [Name].vbs
  • Double click on the file to run the file.

Dim message, sapi
message=InputBox(“What should I speak?”,”Speak to me”)
Set sapi=CreateObject(“sapi.spvoice”)
sapi.Speak message 

6. Password Generator

Is your password Not so strong? Or and problem generating password? By using this below code you can create a password generator. You can customize your password length. Basically this is a kind of PIN generator in which you can generate 4 digits, 5 digits or your customized PIN.

  • Open Notepad
  • Copy the below code on Notepad window
  • Save the file as [Name].bat
  • Double click on the file to run the file.

@echo off
:Start2
cls
goto Start
: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
:A
cls
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
:Exit
exit
:B
cls
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
:C
cls
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

7. Fake Windows Error

This is another cool Notepad trick to show Fake Windows Error. The best part is you can customize your own message.
To Create Fake Windows error you need to follow below steps-

  • Open Notepad
  • Type X=Msgbox(“Message Here”,0+16,”Title Here”)
  • Replace Message Here and Title Here with your own message what you want to show in error message.
  • Save the file with [Name].vbs
  • Double click on the file to show the error message.

8. Type any Sentence Again and Again

Well, this is a fun notepad trick that can be used to prank to friends. This notepad trick will write anything again and again and again. To stop the process user manually needs to stop from Task manager.
To print any sentence, again and again, follow the following steps-

  • Open Notepad
  • Copy the following code

Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “I’ll be typed again and again”
loop

  • Replace ” I’ll be typed again and again” with your own message what you want a repeat.
  • Save the file with [Name].vbs
  • Double click on the file to show the error message.

9. Open Notepad Continuously

This is the perfect prank to disturb your friend. Just copy the below codes and save the file with [Name].bat extension. You can send the file to your friend and ask them to click the file and run the code. Once the file runs the Notepad application will automatically run on your friend’s computer.

@ECHO OFF
:TOP
START %SYSTEMROOT%\SYSTEM32\NOTEPAD.EXE
GOTO TOP

10. Format Hard disk Using Notepad

This is serious, don’t try this trick for fun, it can format your computer and your data will be lost and you can not recover them so don’t use this trick for fun.
Copy the following code into the Notepad file and save the file as [Name].exe, double click on the file to run.

01100110011011110111001001101101011000010111010000
100000011000110011101001011100
0010000000101111010100010010111101011000

Bonus Trick

Disable Mouse Control

Well, you should never try this on your computer, because this method will disable the mouse controls on your computer.
Copy the following code in Notepad and save the file as [Name].bat , and double click to run the 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 Conclusion

Conclusion

So did you know all these tricks before reading this article? If you don’t know or if you learnt something new then don’t forget to share this article so that everyone can know these tricks.
If you know any other tricks then tell me in comments.

Related Posts

3 comments

Amdad Sarkar December 7, 2019 - 11:39 AM

This is too good

Reply

Leave a Comment