Step 1 :Compile this code in C Language and generate EXE file of it....
#include
#include
void main()
{
FILE *f;
int n,i;
char fldr[20];
printf(">>>>>>>>>>>>>>>>>>>>>FOLDER LOCK<<<<<<<<<<<<<<<<<<<\n Coded by deepak garg");
printf("\nWhat do you want to do??");
printf("\n1).Lock Folder\n2).Unlock Folder\n");
scanf("%d",&n);
switch(n)
{
case 1: {f=fopen("conv.bat","w");
printf("\nEnter Folder Name : ");
scanf("%s",fldr);
fprintf(f,"rename %s %s.{21EC2020-3AEA-1069-A2DD-08002B30309D}\ndel conv.bat",fldr,fldr);
fclose(f);}break;
case 2: {f=fopen("conv.bat","w");
printf("\nEnter Folder Name : ");
scanf("%s",fldr);
fprintf(f,"rename %s.{21EC2020-3AEA-1069-A2DD-08002B30309D} %s\ndel conv.bat",fldr,fldr);
fclose(f);}break;
}
}
Step 2: After Getting exe file go to parent folder in which a folder to be locked is placed.. and run this programme
Step 3: it will create One file name conv.bat run this file and Wowvieeee... your folder is locked...
CLSID folders are special folders like My Computer, Control Panel, Recycle Bin etc.... here are few CLSID values i know of....
{00021400-0000-0000-C000-0000000000046}
{21EC2020-3AEA-1069-A2DD-08002B30309D}
{BD84B380-8CA2-1069-AB1D-0800948534}
{20D04FE0-3AEA-1069-A2D8-08002B30309D}
{645FF040-5081-101B-9F08-00AA002F954E}
respectively for....
Desktop
Control Panel
Fonts
My Computer
Recycle Bin
.......................................
what the program basically does is, it will link the folder to the respective CLSID folder.... to make any folder to a clsid folder u renmae it to.....
Folder Name.{CLSID-Value}
DO NOT FORGET THE '.' AFTER FOLDER NAME
to revert it back just rename it back to any other name
[size=5][b]you can also do it in explorer but you cant rename the locked folder to normal in windows
but can do in dos
No comments:
Post a Comment