You are on page 1of 2

How to Protect Folder from being Accessed and Deleted

i )Lock ing the fo lder


Let us assume that you want to lock a folder named "Vipul" whose location is "D:\Myfolder\Vipul". Then, here are the steps that you have to follow to lock the folder. 1. Open Notepad 2. Type the following: You type the following in notepad and save it as "lock.bat" in the same location i.e. ren ayush ayush.{21EC2020-3AEA-1069-A2DD-08002B30309D} 3. Save it as lock.bat next to the folder "ayush". 4. Run it (When you run the batch file, the folder should transform into control panel, making it inaccessable).

i i i ) Access ing the fo lder


To access the contents of the folder follow these steps: 1) Open Notepad

2) Type the following:

save it as "unlock.bat" next to lock.bat and run it.

ren ayush.{21EC2020-3AEA-1069-A2DD-08002B30309D} ayush 3) Save it as "unlock.bat" next to lock.bat. 4) Run it.

You may also replace the code in the bracket with the following ones: {4D36E968-E325-11CE-BFC1-08002BE10318} {66f250d6-7801-4a64-b139-eea80a450b24}

{645FF040-5081-101B-9F08-00AA002F954E}

These two codes will display a window similar to the one given below while accessing the folder.

You might also like