Honore With His Spouce IGA KUBUNTU! OWNER. BLOG SITE. This is My Child FUTURE COMPUTER TECHNOLOGY
blogger JavaScript Rocks.

Wednesday, 20 November 2013

Password protected folder using VBScript

Password Protected Folder


Password protected folder using VBScript


Now I am going to show you How to open your Folder by Entering a Password. That means you can protect your data in particular folder. Whenever you want to open this Folder then you have to Enter your password because I will use “Attrib” command of DOS for hide Folder and then I will Open it by password. So here is VB Script code to Open that Folder by password. Let’s Start.

Step 1 : Open your notepad [Start >> Run >> Type “notepad“ >> Press Enter]

Step 2 : Copy The Following Code in notepad and save it as “Locker.vbs”


'errorcode401.blogspot.in
'========================
Sub Run(ByVal sFile)
Dim shel
Set shell = CreateObject("WScript.Shell")
shell.Run Chr(34) & sFile & Chr(34), 1, false
Set shell = Nothing
End Sub
Dim storedPassword
storedPassword ="errorcode401"
password = InputBox("Please enter password to unlock 'My Locker'.","Locker by Errorcode401")
if password = storedPassword Then
Run "D:\My Locker"
Else
WScript.Echo "Opppsss, wrong Password!"
End if
'======================== 


Step 3 : Now Create One Folder in “D” Drive name with “My Locker”

Step 4 : Now Open your Command Prompt and type the following command one by one.
                                                             
              Cd /d D:
              Attrib +s +h “My Locker”

              Then Close it.




>> That’s it…!!!

Now You Folder "My Locker" is Hidden when you want to open that folder you have to double click on “Locker.vbs” and then you have to provide password to open it.

[Attrib Command is just use to Set the Attribute of File/Folder, Here we are just setting attribute as system and Hidden Folder, So it is possible to anyone can unhide your folder who knows "Attrib" Command]

Change your Password :

Default Passwprd is “errorcode401”. To change it Right Click on Locker.vbs then Click on EDIT then Find for “errocode401” and Replace it with your password.



[Note : This is not good Locker as your need because you can easily see your password by opening it in notepad]



Related Posts:

  • things you didn’t know about your computer            1. Bits, Bytes, and Size Next time you complain about the pitiful memory capacity of your old 8GB iPod Touch, it’s worth remember what makes up eight whole gigab… Read More
  • HOW TO ACCESS BLOCKED WEBSITE?   Hotspot Shield protects your entire web surfing session; securing your connection at both your home Internet network & Public Internet networks (both wired and wireless). Hotspot Shield protects your iden… Read More
  • STEP BY STEP BACKTRACK5 R1 INSTALLATION   What is BackTrack5 BackTrack is an operating system based on the Ubuntu GNU/Linux distribution aimed at digital forensics and penetration testing use. It is named after backtracking, a search algorithm. The c… Read More
  • BEST PROGRAMMING LANGUAGE   computer Programming Languages 1. Java Java uses a compiler, and is an object-oriented language released in 1995 by Sun Microsystems. Java is the number one programming language today for many rea… Read More
  • WHAT ABOUT COMPUTER HACKING?   What is computer hacking? In a cyber security world, the person who is able to discover weakness in a system and managed to exploit it to accomplish his goal referred as a Hacker , and the process is referred as… Read More

0 comments:

Post a Comment