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...

How to repair/fix the booting problem in Windows 7 or 8?

Problem with windows boot?   Are you getting error message like   “Reboot and Select proper Boot device  Or Insert Boot Media in selected Boot device “    while at startup?   Windows 8 has upgraded the desktop side by including a few tools within its troubleshooting asset. You can primarily attempt to fix the booting problem using Startup Repair You can also choose cmd to fix this problem. The might be with MBR. Now what is MBR?   “MBR is one to boot your windows computer, it’s a small file which initiates the booting process ” Discovering a corrupt MBR, boot sector, or Boot Configuration Data (BCD) is tedious process.Now I show how to fix this problem How to repair/Fix the MBR in Windows 7 or Windows 8?   Then you can just follow the steps given below!   Step 1) First of all, you will require a BOOTABLE DISC OR PEN DRIVE. It’s recommended that you isolate other storage devices like pen...

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...