10 Super Cool Notepad Tricks, Hacks &
Commands
People
generally consider Notepad simpler than what it is. But readers, Notepad is
light-weight text-editor but saying it “simpler” would be wrong because it can open many unknown extensions
files and Notepad itself hold many amazing commands,
tricks and hacks to make it more productive for you.
Today,
I am going to share 10 amazing Notepad Tricks & Hacks that
you can use to get most out of Notepad and amaze your friends.

1. Create Diary on Notepad
This Notepad trick will
allow you to create Notepad note in such a format that whenever you edit your
note, it will get saved with date and timestamp automatically. To do this,
follow these steps:
- Open Notepad
- Type .LOG in first line.
- Save
the file as Log.txt
- Now, write something
to the file and it will automatically get saved with edited date and time.

2. Create Fake Windows Errors With Notepad
This is another very cool
Notepad trick that allows you to create Fake error messages. You can create
Fake error message with any message. To do this, follow these steps:
- Open Notepad
- Type X=Msgbox(“Message Here”,0+16,”Title
Here”)
- Replace Message Here and Title Here with
your Error Message and Error-Window Title respectively.
- Save
the file with error.vbs.
- Now, click the file
and you’ll get your custom-made Windows error message.

3. Force Shutdown Your Windows
This trick will let you
force shutdown your Windows in a single-click. So, if you don’t want to waste
three clicks (Start >> Turn Off Computer >> Turn Off), this trick
will help you in that. To do this:
- Open Notepad
- Paste @echo off in first line.
- Paste msg * Shutdown computer in second line.
- Paste shutdown -c “Sleep Tight” -s in third line
- Save
the file with .BAT extension. For example,
shutdown.bat
- Click on your file
and it will automatically shutdown your Windows.

You can imagine the disaster that may happen if you’ll put this
file at Windows Startup 😉
4. Create Password-protected Folder using Notepad
Why
to use any folder-locking software when your simple text editor, Notepad can lock your folders? To
use this Notepad tricks, follow these steps:
- Open Notepad
- Copy the following
code:
@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%== digital.guide 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
- digital.guide written in red is password. Change it to your own password.
- Save
the file as private.bat with File
Type As All Files (*.*).
- Now,
when you click private.bat, it will create a Private folder.
Move your private files, documents and folders here.
- Close Private folder.
- Now, no one will be able to open the folder without the
password.

5. Make Computer To Speak Your Sentence
This
Notepad trick will make computer to speak whatever you type in the
provided text-box. To use this trick, follow these steps:
- Open Notepad
- Copy & paste
this command:
Dim message, sapi
message=InputBox(“What do you
want me to say?”,”Speak to Me”)
Set
sapi=CreateObject(“sapi.spvoice”)
sapi.Speak message
- Save
the file as speak.vbs.
- Double-click the
file and it will open a prompt. Enter the sentence you want your computer
to speak
- Click OK and Notepad
will speak the sentence for you.

Note – In case, if you encounter
error, re-type all the quotes and this notepad trick will work fine.
6. Make CD Drive Open & Close Again and again
This
notepad prank will make your CD drive open and close again and again continually.
To use this notepad trick, use these
following steps:
- Open Notepad
- Enter following
command:
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
- Save
your notepad file as cdopen.vbs
- Now, open cdopen.vbs
and it will start the process to continuously open and close CD drive.
To stop the process, open
Task Manager by pressing Alt+Ctrl+Del and stop cdopen.vbs process.
7. Create Matrix Raining Code Screen
Have
you watched the movie, “Matrix”? You might have seen string of green characters
appearing at the screen randomly. We are going to do something similar with the
help of Notepad. To use this Notepad trick, follow these
steps:
- Open Notepad.
- Type this command:
@echo off
color 02
:start
echo %random%
%random% %random% %random% %random% %random% %random% %random% %random%
%random%
goto start
- Save
the file as Matrix.bat
Click
on Matrix.bat and
the show begins.

Alternatively, you can use
this code for different effect:
@echo off
:a
color 2
echo 1 1 1 0 1 0 0 0 1 1 1 1 0
0 0 1 1 0 0 1 0 0 0 1 1 0 1 0 1 0 0 0 1 1 1 1
ping localhost -n 1 > nul
echo 1 1 0 1 1 1 0 0 0 1 0 1 a
f h 0 0 0 1 0 1 1 0 0 1 1 1 0 0 1 0 1 0 0 1 1 0
echo 1 0 0 1 1 0 9 8 1 2 0 1 9
9 2 1 1 1 0 0 1 0 1 1 1 0 1 1 0 1 0 0 0 1 0 1 1
ping localhost -n 1 > nul
echo 0 1 0 0 0 1 0 0 0 1 0 0 0
1 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 01 0 1 0 0 1 0
ping localhost -n 1 > nul
echo 1 0 1 1 1 0 1 1 0 9 1 1 2
1 1 0 9 1 0 5 7 7 8 7 8 1 3 2 1 2 1 2 3 2 1 3 4
ping localhost -n 1 > nul
echo 1 1 1 0 1 0 0 1 0 0 0 1 1
1 0 0 1 1 1 4 1 2 1 1 2 0 1 0 1 2 2 1 0 1 1 0 1
goto a
8. Make Your Keyboard LED Dance
Your keyboard has three
LEDs above numpad of Scroll Lock, Caps Lock and Num Lock. This Notepad trick
will make those three LED continually on and off, creating dancing effects. To
do this, follow these steps:
- Open Notepad
- Enter following code
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
wshshell.sendkeys “{NUMLOCK}”
wshshell.sendkeys
“{SCROLLLOCK}”
loop
- Save the file as
Dance.vbs
- Click the file and
your all three LED lights will start dancing.
To stop, Shut down or Log
off your PC.

9. EICAR Test File: Test Your Antivirus
Do
you want to check if your Antivirus’ real-time protection is working correctly or not? Then this European Institute
for Computer Antivirus Research (EICAR) code will help you in that.
- Open Notepad
- Copy
this code: X5O!P%@AP[4PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
- Save
the with .COM extension. For example, testantivirus.com
If your antivirus’ real-time
protection is working perfectly, it will show you alert and quarantine the
file by considering it malware.

10. Bush Hid The Facts
This is very simple but the
most popular Notepad trick. To use this notepad trick, follow these steps:
- Open Notepad
- Type BUSH HID THE FACTS
- Save that file
- Open it again &
see. Amazing?
Alternatively,
you can use this app can break.

What happens?
You
might have seen that reopening the file will get show you some unicode
characters instead of what you typed (Bush
hid the facts or this
app can break).
Why this happens?
Both the patterns have
characters string of length 4-3-3-5 which seems to cause bug in Windows PC. So,
this trick works 😉
Windows Best Command
Prompt Tricks & Hacks
Windows Best
Command Prompt Tricks & Hacks
Save A List of Files to a Text File by Extension
dir *.ext /s /b > files.txt
This command line will create a file called files.txt. When you open this file,
there will be a complete list of all the files in that directory and all
subdirectories with the .ext extension. You can then open up this text file in
any text editor and work this the information.By changing the ext part, you can
select different files. For example, if you wanted to list all of the PDF
documents, you would type:
dir *.pdf /s /b > files.txt
Get Your IP Address Information
ipconfig /all
This will retrieve a pile of information about your network connection and IP
information. From this command, you can get:
Host Name
Primary DNS Suffix
Node Type
IP Routing Enabled
WINS Proxy Enabled
DNS Suffix Search List
Connection-specific DNS Suffix
Network Adapter Description
Physical (MAC) Address
DHCP Enabled
IP Address
Subnet Mask
Default Gateway
DNS Servers
Get Installed Driver Information
driverquery
It can be very useful when troubleshooting to know what drivers are installed
on a system. This command will give you a complete listing of the drivers and
when they were installed.
Copy Files Via Infrared Port
irftp filename.ext
This will fire up the Wireless Link dialog so that you can copy the specified
file via an infrared port.
Find Files Opened By Network Users
openfiles /query
If you are running a system and you want to know who has files open on your
computer, this command will provide you a list of those users and the files
that they have open.
Note: If you get an error saying The system global flag
‘maintain objects list’ needs to be enabled to see local opened files, you can
fix this issue by typing openfiles /local on. You will have to reboot the
system but it will resolve the issue.
Monitor Port Activity
netstat -a 30
This will show you all of the TCP/IP ports that are being used on your system
and what they are connecting to (or being connected from). It will continue to
monitor these ports and refresh the information every 30 seconds. You can
change the refresh rate by changing the number at the end of the command.
Recover Information From A Corrupt File
recover filename.ext
If you have a disk with damaged sectors, you can attempt to recover as much
information as possible from the damaged file. Data that is not damaged can be
retrieved but data in damaged sectors will be lost.
Defragment Remote Computer
rexec remotePC defrag C: /F
This command used the rexec command to force a defragment of the C: drive on
the computer named remotePC. You can use whatever you want to for the command
(I just used defrag C: /F as an example). This is very useful for remote
maintenance.
Retrieve Detailed System Information
systeminfo
With this command, you can retrieve the following information:
Host Name
OS Name
OS Version
OS Manufacturer
OS Configuration
OS Build Type
Registered Owner
Registered Organization
Product ID
Original Install Date
System Up Time
System Manufacturer
System Model
System type
Processor(s)
BIOS Version
Windows Directory
System Directory
Boot Device
System Locale
Input Locale
Time Zone
Total Physical Memory
Available Physical Memory
Virtual Memory Max Size
Virtual Memory Available
Virtual Memory In Use
Page File Location(s)
Domain
Logon Server
Hotfix(s)
NetWork Card(s)
Automatically Defragment C: Daily
schtasks /create /tn "Defrag C" /tr "defrag c: /f" /sc
daily /st 23:00:00 /ru "System"
This will set your computer to automatically perform a complete defrag of the
C: drive each day at 11:00:00 PM (23:00:00). It does this by creating a
scheduled task called Defrag C. It will run this command under the computer’s
system account.
Map A Drive Letter to a Folder
subst W: C:\windows
Sometimes, your directory structure can get pretty deep and complicated. You
can simplify this a bit by mapping a drive letter to commonly used folders. In
the example that I have given, this will create a drive letter W: and map it to
the C:\windows directory. Then, whenever you go into My Computer, you will see
a W: drive and when you browse to it, it will automatically take you to the
contents of the C:\windows folder.
You can do this with any unused drive letter and any folder that exists on your
system.
List All Tasks Running On The Computer
tasklist
It’s always good to know what is running on your system. This is the command
line version of the processes tab in Taks Manager.
Kill A Program
taskkill /im programname.exe /f
If, when using the tasklist command, you discover that there is something
running you just want killed. This is the way to do it! Just note the program
name and use it in place of programname.exe.
Reboot a Remote Computer
shutdown -r -f -m \\remotePC -c "System will be rebooted in 20
seconds"
Sometimes, you just need to reboot a system. This will do it remotely and give
the user a 20 second warning.
Tip : To open Command Prompt, click Start, click Run, type cmd, and then click
OK. Best Command Prompt for Windows
15 Popular Command Prompt Tricks & Hacks
Save A List of Files to a Text File by Extension
dir *.ext /s /b > files.txt
This command line will create a file called files.txt. When you open this file,
there will be a complete list of all the files in that directory and all
subdirectories with the .ext extension. You can then open up this text file in
any text editor and work this the information.By changing the ext part, you can
select different files. For example, if you wanted to list all of the PDF
documents, you would type:
dir *.pdf /s /b > files.txt
Get Your IP Address Information
ipconfig /all
This will retrieve a pile of information about your network connection and IP
information. From this command, you can get:
Host Name
Primary DNS Suffix
Node Type
IP Routing Enabled
WINS Proxy Enabled
DNS Suffix Search List
Connection-specific DNS Suffix
Network Adapter Description
Physical (MAC) Address
DHCP Enabled
IP Address
Subnet Mask
Default Gateway
DNS Servers
Get Installed Driver Information
driverquery
It can be very useful when troubleshooting to know what drivers are installed
on a system. This command will give you a complete listing of the drivers and
when they were installed.
Copy Files Via Infrared Port
irftp filename.ext
This will fire up the Wireless Link dialog so that you can copy the specified
file via an infrared port.
Find Files Opened By Network Users
openfiles /query
If you are running a system and you want to know who has files open on your
computer, this command will provide you a list of those users and the files
that they have open.
Note: If you get an error saying The system global flag
‘maintain objects list’ needs to be enabled to see local opened files, you can
fix this issue by typing openfiles /local on. You will have to reboot the system
but it will resolve the issue.
Monitor Port Activity
netstat -a 30
This will show you all of the TCP/IP ports that are being used on your system
and what they are connecting to (or being connected from). It will continue to
monitor these ports and refresh the information every 30 seconds. You can
change the refresh rate by changing the number at the end of the command.
Recover Information From A Corrupt File
recover filename.ext
If you have a disk with damaged sectors, you can attempt to recover as much
information as possible from the damaged file. Data that is not damaged can be
retrieved but data in damaged sectors will be lost.
Defragment Remote Computer
rexec remotePC defrag C: /F
This command used the rexec command to force a defragment of the C: drive on
the computer named remotePC. You can use whatever you want to for the command
(I just used defrag C: /F as an example). This is very useful for remote
maintenance.
Retrieve Detailed System Information
systeminfo
With this command, you can retrieve the following information:
Host Name
OS Name
OS Version
OS Manufacturer
OS Configuration
OS Build Type
Registered Owner
Registered Organization
Product ID
Original Install Date
System Up Time
System Manufacturer
System Model
System type
Processor(s)
BIOS Version
Windows Directory
System Directory
Boot Device
System Locale
Input Locale
Time Zone
Total Physical Memory
Available Physical Memory
Virtual Memory Max Size
Virtual Memory Available
Virtual Memory In Use
Page File Location(s)
Domain
Logon Server
Hotfix(s)
NetWork Card(s)
Automatically Defragment C: Daily
schtasks /create /tn "Defrag C" /tr "defrag c: /f" /sc daily
/st 23:00:00 /ru "System"
This will set your computer to automatically perform a complete defrag of the
C: drive each day at 11:00:00 PM (23:00:00). It does this by creating a
scheduled task called Defrag C. It will run this command under the computer’s
system account.
Map A Drive Letter to a Folder
subst W: C:\windows
Sometimes, your directory structure can get pretty deep and complicated. You
can simplify this a bit by mapping a drive letter to commonly used folders. In
the example that I have given, this will create a drive letter W: and map it to
the C:\windows directory. Then, whenever you go into My Computer, you will see
a W: drive and when you browse to it, it will automatically take you to the
contents of the C:\windows folder.
You can do this with any unused drive letter and any folder that exists on your
system.
List All Tasks Running On The Computer
tasklist
It’s always good to know what is running on your system. This is the command
line version of the processes tab in Taks Manager.
Kill A Program
taskkill /im programname.exe /f
If, when using the tasklist command, you discover that there is something
running you just want killed. This is the way to do it! Just note the program
name and use it in place of programname.exe.
Reboot a Remote Computer
shutdown -r -f -m \\remotePC -c "System will be rebooted in 20
seconds"
Sometimes, you just need to reboot a system. This will do it remotely and give
the user a 20 second warning.
Tip : To open Command Prompt, click Start, click Run, type cmd, and then click
OK.
I
have made another prank that I think you will like. It is just an offline
webpage, and it is very simple. This Instructable is kind of similar tohttp://www.instructables.com/id/Virus-Prank/.
Step 1: Type
1.
Go to the start menu.
2. Click on "All Programs".
3. Accessories.
4. Notepad.
Type or copy and paste the following (I recommend copy and paste):
<center>Enter one word describing you <br>and you could win a free
laptop!<br><input type="text"></input>
<p>
<html>
<head>
<script type="text/javascript">
function display_alert()
{
alert("YOUR COMPUTER HAS FOUND A MAJOR VIRUS!!!!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
alert("PANIC!!!!!")
}
</script>
</head>
<body><input type="button"
onclick="display_alert()"
value="Submit" /></body>
</html></center>
Click File, Save as. Name it something that will bring attention to people. And
where it says .txt, make it .html.
I Want to use this medium in appreciating cyber golden hacker , after being ripped off my money,he helped me find my cheating lover he helped me hack her WHATSAPP, GMAIL and kik and i got to know that he was cheating on me, in less than 24 hours he helped me out with everything, cybergoldenhacker is trust worthy and affordable contact him on: cybergoldenhacker at gmail dot com
ReplyDeleteSpammer...
ReplyDelete
ReplyDeleteThis professional hacker is absolutely reliable and I strongly recommend him for any type of hack you require. I know this because I have hired him severally for various hacks and he has never disappointed me nor any of my friends who have hired him too, he can help you with any of the following hacks:
-Phone hacks (remotely)
-Credit repair
-Bitcoin recovery (any cryptocurrency)
-Make money from home (USA only)
-Social media hacks
-Website hacks
-Erase criminal records (USA & Canada only)
-Grade change
Email: onlineghosthacker247@ gmail .com