Article Title: Simple Method To Hide / Protect Your Folder With A Password Without Using Any Software (Using Batch File) Language: En...
Article Title: Simple Method To Hide / Protect Your Folder With A Password Without Using Any Software (Using Batch File)
Language: English
Written by Yudhvir Singh Ahlawat
There are many ways to protect your files & folders but most of them requires a software which usually takes time to lock or unklock your files too. I'll share a simple trick today which will help you to protect your files without using any software, this trick will work on almost all version of windows (tested on XP & 7). This trick works using batch programming, don't worry you need not to learn that. In the method given below we will create a simple batch file, just follow the steps, trust me it's damn easy.
How to lock folder?
1. Open notepad and copy this whole code given below into it.cls2. By default the password is set as "ywfpass" to change it, simply replace the text ywfpass with the password of your choice in notepad.
@ECHO OFF
title Youth Welfare Federation - Password Protection Trick For Folders
echo ###################################################################
echo #### ####
echo #### Support us by liking our page: fb.com/ywfdcrustm ####
echo #### ####
echo ###################################################################
echo.
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
: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 MyFolder "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%== ywfpass goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
echo Now move your files or folders to this MyfFolder.
echo Then run this program again to protect this folder.
pause
goto End
:End
3. Now save your file as ywflock.bat (or any other name, but .bat is must)
4. Now open ywflock.bat, it'll create a folder named MyFolder.
5. Copy or move all your data that you want to protect in that folder.
6. Now open ywflock.bat and when command prompt appears type Y and press enter.
7. Now folder is locked (in real it's hidden from your view), to access that folder again re-run ywflock.bat (this time it will ask for password to unlock, type ywfpass and press enter).
8. That's it, one advice for further securing: you should keep ywflock.bat somewhere else after locking the folder and bring it to original location only when you have to unlock the folder.
If you have any queries like what this method really does? how it protects or hides our files? what are the risks? e.t.c. then please feel free to message us on our official FB page: