Skip to main content

how to lock a folder without any software in windows?

HOW TO LOCK A FOLDER WITHOUT ANY SOFTWARE IN WINDOWS?






















This is very useful trick so that you can protect your files/folders in a windows machine!

Just type the following code in a notepad and save it as *.bat !

cls
 :End
 @ECHO OFF
 title Folder Locker v1.1
 if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
 if NOT EXIST Locker goto MDLOCKER
 :CONFIRM
 echo Do you want 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 Command !!
 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 Successfully !
 goto End
 :UNLOCK
 echo Enter password to Unlock folder
 set/p "pass=>"
 if NOT %pass%==temppass goto error
 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
 :error
 echo Error wrong password !
 goto end
 :MDLOCKER
 md Locker
 echo Locker Folder created !
 goto End














Save it as "filename.bat" NOTE:It must have ".bat" as extension
 After opening it, This will create a folder called "Locker"
 Put the files which you want to lock in the "Locker" folder
 & Close the application.

NOTE: To unlock it password is temppass but You can change it.

just replace temppass to your own password!!

 

Comments

Popular posts from this blog

create CON, PRN, AUX folder in Windows

Ever tried to create the following folder in Windows?  CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, & LPT9 Probably windows doesn't allow you to create a folder in these name using Windows Explorer or Command Prompt directly! This is because windows prevent these terms as SYSTEM Folder Names   which are reserved  for the Operating System. But there is a trick to create it. Trick for CREATING those folders:  In command prompt, Type the following: md \\.\\C:\con This would create a folder named "con" on your "C Drive" i.e., md \\.\\(path where you want to create)followed by the name Similarly to delete such folder: Type the following in cmd: rd/s \\.\\C:\con This would remove the folder named "con".please note that rd(Remove Directory) command is used with "/s" switch as otherwise it would give error that "folder is not...

Protect you apps using a password

Want to protect your Software / apps by a passphrase ?   Hello friends, today I gonna teach you a trick to protect your application softwares by a   password. This avoids other users to open and launch an application .Those who know only password can customize it.   Password Door is especially used to add passwords to programs. Once protected, the list will be kept secure in a simple window. At any time, users are free to Add, Remove, Modify and Enable the protection. If you are interested to protect your pc softwares with password then just follow below steps 1)       First of all download   “Password Door software” to your PC.   2)       In the installation wizard , it will prompt you to enter a password as shown                Now you can type a password of your wish!This will be used to open the password protected software...

Recover images from damaged SD card

    Hai friends,  Today I will give some tricks and tips to recover images from damaged SD card : A new, high-capacity SD card which is very smaller than a postage stamp — can hold lots and lots of files or images .  If the card breaks or lost ,then you will miss entire files! There are times when a memory card just goes nonfunctional. You put it in the computer and it shows up blank, it's corrupt or ju st missing files .  1) Recuva and  2) Zero Assumption Recovery are two good applications to recover your lost files.  These free file recovery applications will find hidden or removed items on memory cards . You can use them to recover files on flash drives and hard drives as well.  After a scan, you might see your photos and other missing files. On recovering the files, be sure to save them to your hard drive. Don't try to save them to the memory card! If your card reader isn't broken and the card isn't externally...