How to Hide Folder in Windows 10 using batch file
1.Open Note Pad
2. copy paste the below script:
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
Advertisement
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==YourPassword 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
3.Save the file with name Locker.bat
4.open the saved file again in Notepad and replace "yourpassword" with your own password, and just save the file.
5.now run the file locker.bat and it will create a new folder name Locker.
6.Now save all your document and file in that folder, the run the batch file again it will prompt you with Y/N, Select Y. The the Locker folder will be hidden.
7. To open the folder run the batch file again now it will prompt you to enter your password then enter the password you that you replaced with. You will have access to the folder now.
No comments:
Post a Comment