Notepad Tricks                                                                         ▲                       
Note: Some programs might not work in Windows 8.                           More Pages for Programmers

1. Continually Pop The CD Drive(s)


1. Open Notepad

2. Copy the following 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
wscript.sleep 5000
loop


3. Save it as “filename.vbs” (It must have ".vbs" extension)


After running this program your computer's CD drive will pop-up simultaneously

 

HOW TO STOP: Just kill the "wscript.exe" process in Task Manager. 


2. World Trade Center Attack Trick


1. Open Notepad

2. Type Q33N

3. Increase the Font Size to 72 or more

4.Change the Font to Wingdings


You'll see a plane about to hit a two buildings, this whole scenario represents the horrified scene of 9/11 attack.


3. Matrix Effect


1. Open Notepad.

2. Copy the following code:


@echo off

color 02

:start

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto start



3. Save it as "filename".bat (It must have ".bat" extension)


That's it. Just open the file to see the matrix effect.

Press (Alt + Enter) to watch in full screen.


4. Constantly Repeat Messages


1. Open Notepad.

2. Copy the following code:


@echo off

:notepadtricks

msg * What's going on ?

msg * Having fun ?

msg * Getting Angry ? !!! 

msg * Try to stop me !

msg * Because you are an idiot.

GOTO notepadtricks



3. Save it as "filename.bat" (It must have ".bat" extension)


Most simplest way to annoy your friends.


HOW TO STOP: Just kill the "cmd.exe" process in Task Manager.


5. Diary Log


1. Open Notepad

2. Copy the following code:


.LOG


3. Save it as a "filename" (No extension required) 


If you will open it, then it will show you time & date.


6. Hijack Num lock


1. Open Notepad 

2. Copy the following code:


Set wshShell =wscript.CreateObject("WScript.Shell")

do

wscript.sleep 100

wshshell.sendkeys "{NUMLOCK}"

loop


3. Save it as "filename.vbs" (It must have ".bat" extension)


After you'll open this program your Num Lock key will be switched on & off simultaneously 


HOW TO STOP: Just kill the "wscript.exe" process in Task Manager.


7. Shutdown 


1. Open notepad

2. Copy the following:


@echo off

msg * The text goes here

shutdown -c “The shutdown message goes here” -s 30


3. Save it as "filename.bat" (It must have ".bat" extension)


After you'll open this program you'll be given 30 seconds to save all your work with a pop-up message.


User will have only 30 seconds before computer shutdowns, you can change the value according to you will.

HOW TO STOP: Just start "RUN" from start menu, & type "shutdown -a"


8. Trick Make Your Computer Speak What You Type


1. Open Notepad 

2. Copy the following code: 


Dim userInput
userInput = InputBox("Type below I will speak it. (Visit www.coolnotepad.webs.com)")
Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
Sapi.speak userInput


3. Save it as "filename.vbs" (It must have ".vbs" extension)


After you open this program you can type whatever you want & your computer will speak it, unless you have speakers plugged in. 


9. MS-Word Trick


1. Open MS-Word

Type "rand = (x,y)"


NOTE:

Where x is the number of paragraphs and y is the number of sentences per paragraph.

for e.g : "rand = (20,3)"


10. Invalid Folders


You can't create a folder name which are below:

CON, PRN, NUL, COM1 to COM9, LPT1 to LPT9


Try it

This is because the above names are system folder which are present in windows directory. So it's invalid to create those folders.


11. Type "Error Virus" Contentiously


1. Open Notepad

2. Copy the following code:


Set wshShell = wscript.CreateObject("WScript.Shell")

do

wscript.sleep 100

wshshell.sendkeys "Error Virus "

loop


3. Save it as "filename.vbs" (It must have ".bat" extension)


After you'll run this program you'll definitely be in trouble because it will keep typing the given word ("Error Virus" in this case).


HOW TO STOP: Just kill the "wscript.exe" process in Task Manager.


12. Make you own calculator for multiplication


1. Open Notepad

2. Copy the following code:


num1=inputbox("Number 1")

num2=inputbox("Number 2")

msgbox num1*num2



3. Save it as "filename.vbs" (If must have ".bat" extension)


It will multiply the two given numbers.


13. Make a software to lock your folder


1. Open Notepad

2. Copy the following code:


cls

:End

color 0b

@echo off

title Folder Locker v1.1

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Locker goto MDLOCKER

:CONFIRM

color 0a

echo Do you want to lock this 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 Command !!

goto CONFIRM

:LOCK

ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

echo Folder Locked Successfully !

goto End

:UNLOCK

color 0e

echo Enter password to Unlock folder

set/p "pass=>"

if NOT %pass%==khulja goto error

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker

echo Folder Unlocked Successfully

goto End

:error

color 0c

echo Error Wrong Password !

goto end

:MDLOCKER

color 0a

md Locker

echo Locker Folder created !

goto End


3. Save it as "filename.bat" (It must have ".bat" extension)


After you'll run this program it'll will create a folder called "Locker"

Put the files which you want to lock in the "Locker" folder

& close the application, with a specific command.


NOTE: To unlock it password is "khulja" (You can change it).


15. Make a software for easy access to your favorite websites.


1. Open Notepad

2. Copy the following code: 


@echo off

title Website Selector v1.1

:top

cls

color 0a

echo Website Selector v1.1

echo ---------------------------------------------------------------------------

echo [01] Google

echo [02] Hotmail

echo [03] Gmail

echo [04] Facebook

echo [05] MySpace

echo [06] Twitter

echo [07] Linkedin

echo [08] Bing

echo [09] The Pirate Bay

echo [10] YouTube

echo [11] Blogger

echo [12] Wikipedia

echo [13] Kickass

echo [14] Amazon

echo [15] Ebay

echo [16] Yahoo

echo.

echo [U] (Enter URL)

echo [I] Info 

echo [Q] Quit

echo ---------------------------------------------------------------------------

set /p website= Enter Number: 

if %website%==1 start www.google.com

if %website%==2 start www.hotmail.com

if %website%==3 start www.gmail.com

if %website%==4 start www.facebook.com

if %website%==5 start www.myspace.com

if %website%==6 start www.twitter.com

if %website%==7 start www.linkedin.com

if %website%==8 start www.bing.com

if %website%==9 start www.thepiratebay.org

if %website%==10 start www.youtube.com

if %website%==11 start www.blogger.com

if %website%==12 start www.wikipedia.com

if %website%==13 start www.kickass.to

if %website%==14 start www.amazon.com

if %website%==15 start www.ebay.com

if %website%==16 start www.yahoo.com

if %website%==u goto url

if %website%==U goto url

if %website%==q goto exit

if %website%==Q goto exit

if %website%==i goto info

if %website%==I goto info

cls

goto top


:info

cls

color 0a

echo.

echo Programming: Kartikey Singh

echo.

echo Version: 1.1

echo.

ping localhost -n 6 >nul

goto top


:url

cls

color 0f

echo Type the website URL:

echo.

set/p site=

echo.

echo ---------------------------------------------------------------------------

start %site%

color 2

goto top


:exit

cls

color 0c

echo.

echo Thank you for using Website Selector v1.1

ping 127.0.0.1 >nul

exit


3. Save it as "filename.bat" (It must have ".bat" extension)


After you'll run this program you will get number of list with websites names,

type the number & that website will be automatically be opened in your default browser.


16. Create New Folder With Your Own Software.


1. Open Notepad

2. Copy the following code:


@echo off

:top

color 0e

cls

echo.

echo Enter name of folder:

echo.

set /p name=

mkdir %name%

cls

echo.

color 0a

echo Folder name %name% was successfully created !

echo.

pause

exit


3. Save it as "filename".bat (It must have ".bat" extension)


After you'll run this program you'll be asked to type the folder name, after the command is satisfied the folder with that name will be created.


NOTE: Folder name having spaces will create two different folder. Just like if you wanna create a folder name "Just Kidding" then it'll create two folders naming "Just" & "Kidding".


17. Process Finder.


1. Open Notepad

2. Copy the following code:


@echo off

:fnd

cls

color 0a

echo.

echo Enter the process name:

echo.

set /p process=

tasklist /nh /fi "imagename eq %process%" | find /i "%process%" >nul && (

echo.

echo Process: %process% is running

) || (

echo.

echo Process: %process% is not running

)

pause>nul

goto fnd


3. Save it as "filename.bat" (It must have ".bat" extension)


After you'll run this program you'll be asked to enter the process name & it will automatically search for that specific process.


18. Change Date From Command Prompt.


1. Open Command Prompt

2. Type date in the Command Prompt window.

3. You'll be asked to enter the new date (dd-mm-yyyy)


Just simply enter the new date, you're done.


19. Heads or Tails


1. Open Notepad


2. Copy the following code


==================================================================================

Notepad Tricks © 2013-17.

Like our GTA gaming page on Facebook.

         Kartikey Singh

    Founder & CEO of Notepad Tricks

    -----------------------------------------------

Stay Connected: