3 Feb 2015

Top 5 best tricks that notepad can do

Notepad-tricks-commandsNotepad is a simple text editor that can be used for simple documents and for creating web pages.
The default file extension for notepad is .txt.But depending upon type of documents we create we can save the file with different extension like .xml,.html .vbs,.exe. In this tutorial we will let you know 5 best Tricks that notepad can do which are fun and at the same time they are  useful.Lets get started.

1.Creating a password protected folder :

When privacy come first we try to use some sort password manager apps for folders or Drive disks.But do you know that you can create a folder which is password protected by using notepad?
This is how its done
1.Open the Notepad
2.Copy and paste the exact code in notepad


 cls
 @ECHO OFF
 title Folder Secure
 if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
 if NOT EXIST Secure 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 Secure "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 echo Folder secured
 goto End
 :UNLOCK
 echo Enter your password to get access to the files
 set/p "pass=>"
 if NOT %pass%== gadgetstroop goto FAIL
 attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Secure
 echo Now you can access folder and its files
 goto End
 :FAIL
 echo Please enter the correct password
 goto end
 :MDLOCKER
 md Secure
 echo Secure created successfully
 goto End
 :End

3.Now "save as" the file with anyname as "anyname.bat" and change save as type to all files

Notepad-tricks
4.after saving you will a bat  file.
5.Double click on it.It will as you to create a folder. type y and press enter
6.Now move all of your files to that folder and close it .Now double click the .bat file again it will lock the folder.Once locked you will not be able to see the folder.
7.If you want to access the folder double click the .bat file again.and type the password. Once the password is entered folder reappears and you can access the contents.

Common queries:

1.What if the "anyname.bat" is deleted?
If you delete the .bat file you will not be able to access the file
2.How to access the folder if anyname.bat is deleted?
paste the code again and save as it as done previous and run it enter the password.That it!


2.Convert text to audio :

Ever thought that you can make computer to read out the text.This can come in handy if you are confused how to read word out.Try this out

Dim message, sapi
message=InputBox("Type what do want me to read out for you?","Speak to Me")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message 
make-notepad-to-read



3. Check if your antivirus is working properly:

Even though lot of anti virus are available for free sometime you may have doubt if its working properly.Use the following command to see if your anti virus is working properly.

1.open the notepad
2.Copy and paste this
X5O!P%@AP[4PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
3.Save as the document with .com extension say" virus.com"
4.Once saved your antivirus should detect it as a virus and has to remove it
5.If your antivirus fails to do so then its time for a new antivirus.


4. Make cd drive open and close repeatedly:

This trick makes you cd drive to dance.
1.Open notepad
2.copy and paste 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 with .vbs extension say cddrive.vbs
4.Run the file and make your cd drive dance.
To stop the action you need to force close the file. Use ctrl+alt+delete and stop the file.

5.Shutdown your computer with just a click:

Lets first see how we usually shutdown the computer
Click on windows then power options then shutdown takes little time
Now using this you will be able to shutdown in just a click(double click)
1.open the notepad
2.copy the code and paste it
@echo off
*shutdown computer
shutdown -c"sleep tight" -s
3.Save the file with .bat extension say shutdown.bat
4.double click the file and your computer will shoutdown

 Must Read: Speed up your computer using notep

Conclusion:

These are the 5 best notepad tricks that are extremely useful and fun too.Note these tricks are for educational purpose only dont try to miss use them.

Top 5 best tricks that notepad can do Reviewed by Radha Krishna on 22:05 Rating: 5 Notepad is a simple text editor that can be used for simple documents and for creating web pages. ...

No comments: