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

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

Samsung Galaxy Y Hidden secret Codes

Samsung Galaxy Y Hidden secret Codes!! Hai Samsung Galaxy Y users!! Today i am going to show some secret(hidden) codes!! Try THIS!!! Phone information:  *#*#4636#*#* Hard reset:  *2767*3855# ] Factory reset:  *#*#7780#*#* Change end call/power option:  *#*#7594#*#* Service mode:  *#*#197328640#*#* File copy screen(For Backup Media File):  *#*#273283*255*663282*#*#* Touch screen test:  *#*#2664#*#* Proximity sensor test:  *#*#0588#*#* RAM versioncodes to get firmware version information:  *#*#3264#*#* WLAN test:  *#*#526#*#* Shows wifi mac address:  *#*#232338#*#* GPS test:  *#*#1472365#*#* Another gps test:  *#*#1575#*#* Bluetooth test:  *#*#232331#*#* Shows bluetoothdevice addres:  *#*#232337#*# gtalk service monitor:  *#*#8255#*#* Packet loopback:  *#*#0283#*#* Lcd test: *#*#0*#*#* Melody test:  *#*#0673#*#* Device test (For both vibration and backlight test):  *#...

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