You just got to try this method out. As the headline boasts, it is the best way you can hide and lock those little personal folders of yours, away from the prying eyes of your partner, parents or even kids. Here it goes -
@ECHO OFFtitle Folder Hideif not exist readme_locker.txt goto readmeif EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCKif NOT EXIST Personal goto MDLOCKER:CONFIRMecho Are you sure you want to lock the 'Personal' folder (Y/N)set /p "cho=>"if %cho%==Y goto LOCKif %cho%==y goto LOCKif %cho%==n goto exitif %cho%==N goto exitecho Invalid choice. Try Again.goto CONFIRM:LOCKren Personal "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"echo Folder lockedpausegoto exit:UNLOCKecho Enter password to unlock folderset /p "pass= >" attrib -h -s "c:\windows\setup.ecr"set /p oripass= <>
attrib +h +s "c:\windows\setup.ecr"
if NOT %pass% == %oripass% goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Personal
echo Folder Unlocked successfully
pause
goto exit
:FAIL
echo Invalid password....
echo If you forgot the password mail me:kpmsivachand@yahoo.com
pause
goto exit
:MDLOCKER
rem echo Enter the name for create a folder to hide:
rem set /p "name= >"
echo Enter the password for hide the 'Personal' folder:
set /p "msg=>"
del "c:\windows\setup.ecr"
cls
echo %msg% >> c:\windows\setup.ecr
attrib +h +s "c:\windows\setup.ecr"
md Personal
echo 'Personal' Folder created successfully ...
echo It is created in the current directory...
pause
goto exit
:readme
echo Readme file created....
echo Follow the procedure according to the readme_locker.txt
echo ================================================>> readme_locker.txt
echo Folderlocker 1.0 (Beta) * README FILE * Nov 22, 2007 >> readme_locker.txt
echo =============================================== >> readme_locker.txt
echo CONTENTS: >> readme_locker.txt
echo 1. What is Folderlocker? >> readme_locker.txt
echo 2. Steps >> readme_locker.txt
echo 1. What is Folderlocker? >> readme_locker.txt
echo ------------------------ >> readme_locker.txt
echo Folder locker is used for the protect a folder with a password. >>readme_locker.txt
echo 2. Steps >> readme_locker.txt
echo -------- >> readme_locker.txt
echo i.Enter the password for hide the 'Personal' folder >> readme_locker.txt
echo ii.Drag the files into 'Personal' folder to protect >> readme_locker.txt
echo iii.Run the folderlocker.exe again >> readme_locker.txt
echo iv.If you want to lock the folder hit 'y' or 'Y' Without Quotes >> readme_locker.txt
echo vi.If you want to retrieve the folder run the folderlocker.exe again >> readme_locker.txt
echo vii.Give the Correct password >> readme_locker.txt
echo ============================================== >>readme_locker.txt
pause
:exit
- Copy the above code in NotePad or any other text editor and save it as "LockFolder.bat".
- Run the batch file. This will create a text file called"readme_locker.txt" in the same folder.
- Again double click on "folderlocker.bat" which now asks to enter a password. Input the password and now you will see a folder created, named "personal".
- Now copy all the contents you want to hide in this "personal" folder.
- Again, double click on "folderlocker.bat" which will asks you to press y/n to hide the folder. Press y.
- That's all. You will see your personal folder is hidden completely and also invisible if you show hidden files and folders.
- Later, if you want to see the personal folder just click on "folderlocker.bat" which asks to enter the password. Input it and then you the personal folder appears.