How To Lock Folder ..??
Here Is The Trick..
1) open NotePad
Right Click > New > Text Document

cls
@ECHO OFF
title Folder Private
if EXIST "TC4ALL Locker" 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 "TC4ALL Locker"
attrib +h +s "TC4ALL Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== 12345 goto FAIL
attrib -h -s "TC4ALL Locker"
ren "TC4ALL Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
03) Save The Notepad Document As TC4ALL Folder Locker.bat


05 ) Now Double Click On Created Batch File Named " TC4ALL Folder Locker.bat "
it Will Create A Folder Called "Private"
Add Your All Private Stuffs To Created Folder "Private" .

06 ) When You Have Finished Adding Your Stuff To Private Folder Double Click On TC4ALL Folder Locker.bat Again
It Will Ask You That " Are You Sure You Want To Lock The Folder"Press " Y " And Hit Enter Key To Lock Folder ..
To Unlock Folder Again run TC4ALL Folder Locker.bat AgainYou Will Prompted For A Password Set In The Above Script (12345)
Enter The Password And Hit Enter And Voila... The Private Folder Was Visible Again ....

gr8, this is really handy .. and works nicely :)
ReplyDeleteYours Welcome My Friend..
DeleteKeep Visiting For More Stuff...