How to lock a folder without any software
Open the empty text document
Its get from right click mouse or get from the run command
notepad
Open the text document
Past the following command
@ECHO OFF
if EXIST "Control
Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST TestFolder goto MDTestFolder
:CONFIRM
echo Are you sure to lock this 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 TestFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== PassW0rd FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control
Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" TestFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDTestFolder
md TestFolder
echo TestFolder created successfully
goto End
:End
Here default password is passw0rd if you want change the
password change here
And if you want change the folder name here you
want modify the following details
Here TestFolder is the default folder name
Save the file with your option name with .bat extension is
must
Now I will go to move this bat file to Test folder
With the some files which
I want hide
Now double click on the
bat file There the private folder has been created automatically
Now move the all files to
private folder except the unlocker file
Now come to test folder
and double click on the unlocker bat
Now the below prompt will
open click on the enter Y
Now the private folder is
gone
If you want unlock click
on the unlocker
Now it will asking for
password enter the password it will unlock
Now the private folder is
enable
Is it working?
ReplyDeleteAnyway i will try this and get back you annu
Check and ping me back
ReplyDelete