Hide file and folders in pc/laptop


You Might be tired of using File lockers softwares which is difficult to use and ask for registrations.

Follow the simple trick:

  • Open NotePad and paste the following code


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%==password123 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

  • Then save it as Locker.bat



  • Click on that BAT file , a New Folder called Locker will be created as shown below






  • ​Copy and paste all the Files and Folders that you want to Hide into that Locker Folder.



  • Then click on that BAT file again a CMD promt will appear and ask you permission to lock the files. Just Type Y and press Enter.






  • Now you can see all the files and folders and also the Locker folder disappears.








  • ​To Unlock all the files and folders, Once again click on that BAT file. You will see a CMD promt then Type password123






  • ​​You will see that Locker Folder appears back.




  • ​If you want to change the password, Open that BAT file in notepad and search for the word "password123"  and replace it with your new Password.



Show your appreciation by liking or sharing the post:
Previous
Next Post »