How to Lock your Files without any Software in Windows XP & Windows 7

Hii friends,Today i’m going to share an awesome trick.Most of the users want to have a privacy for thier files.There are lots of softwares available on the internet but most of them are paid and others would know by seeing that specific software’s name.

So users who want to avoid this can read this trick to lock files in windows without any software easily.


Steps to Lock your Files without any Software in Windows XP & Windows 7  :-

1. Open Notepad and copy the below code and save as “locker.bat”.

2. Copy and paste the exact code given below:-

cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the 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 Locker “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 folder
set/p “pass=>”
if NOT %pass%==your password goto FAIL
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
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

3. Click on the File Menu. Click on Save As.

4. Select All Types and Save the file as “*.bat” or “Locker.bat”.

Don’t forget to edit the line that have your password the above code.

if NOT %pass%==your password goto FAIL

After creating the file, double click on the Saved file. A new folder will be created. Enter your data in the folder. Again, double click on the batch file. Type Y and press Enter. The folder will be hidden from view.

That’s it.Enjoy………..

  1. My PC windows xp continues to restarts in boot option I can’t see windows xp well come screen please help as soon as possible