Monday, July 15, 2013

How to Lock file & folder Without third party Software

Sometime we have to share our file and folder with others but we don't want to share our confidential file or folder.then we looking for Locker software to lock our confidential file.
Today i will show you how to create our very own File Locker software using only notepad.
Notepad is available in every windows computer. If you don not have notepad just simply
download from here.

Download Notepad

After installing notepad.open notepad & copy paste the below codes on your notepad:

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker "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%==password goto FAIL
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
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End



I have set my password as password  ,replace it with your own password.

In your notepad  go to File and Save as  the file as lock.bat .





 Now go to desired file or folder which you want to lock , copy  lock.bat on desired file. click on lock.bat and a new file will be automatically created named Locker.





 Put all your confidential data in Locker folder and click on the lock file again to lock the folder. As you choose Y, the folder will be hidden and inaccessible by other users. 


 To unlock it again you simply need to click on the lock.bat file and type the password for it and the folder will be unlocked.



No comments:

Post a Comment