Thursday, May 23, 2013   
  Search   
 

Office 2010 - Launch Event

Register  Login  
Forums  
     Minimize  

MeraWindows Forums - Get your Computer Problems Fixed

This is a site run by the community - for the community. At the site, we share and contribute our computer learnings with each other. We discuss about Windows, Office, Mobile, Gaming and other computer related topics. At our forums you can post your queries and our very helpful community members will respond quickly to your queries. We organize lots of competitions from time to time and award prizes to the winners.
You will need to register at the site before posting in forums. It's absolutely free. After registering, you can get all the benefits available to our registered members, you can access our Downloads section, you can participate in contests, etc. You can post in forums in English as well as in Hindi, in fact we encourage you to use Hindi in your posts. If you have any problem with registration or login, please contact us.

     
  
HomeHomeGeneralGeneralProgrammingProgrammingfolder locker source code in c++folder locker source code in c++
Previous
 
Next
New Post
8/14/2008 11:57 AM
 

I have created a program in C++ that will lock the folder here is the coding for
it
#include<process.h>
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
void print();
void choice();
void main()
{
clrscr();
print();
cout<<"\n\n\n\n\n\n\n\n -Before proceeding read carefully the
readme.txt file.";
cout<<"\n\n -On execution it will create files namely lock.bat &
unlock.bat.";
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tTHANK YOU";
cout<<"\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\tpress any key ...";
getch();
clrscr();
char pass[6];
print();
cout<<"\n\n Enter secret code :";
abc:for(int i=1;i<=6;i++)
{
pass[i]=getch();
cout<<"*";
}
getch();
for(i=1;i<=6;i++)
{
if(pass[1]=='R' && pass[2]=='i' && pass[3]=='t' && pass[4]=='e'
&& pass[5]=='s' && pass[6]=='H')
{
clrscr();
char fold_name[20],ch;
print();
cout<<"\n\n\n Enter the name of the folder you want to protect :
";
cin.getline(fold_name,20);
char kk;
clrscr();
asd:print();
cout<<"\n\n\n What do you want to do?";
cout<<"\n\n\n\ta> Lock Folder";
cout<<"\n\n\tb> Unlock Folder";
cout<<"\n\n\tc> Exit";
cout<<"\n\n\n\n\n\n Enter your choice : ";
cin>>kk;
switch(kk)
{
case 'a':
case 'A':
{
qwe:clrscr();
print();
cout<<"\n\n In which special folder you want to convert your
folder:";
choice();
cin>>ch;
switch(ch)
{
case '1':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{00022602-
0000-0000-C000-000000000046}\ndel lock.bat";
file.close();
} break;
case '2':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{0CD7A5C0-
9F37-11CE-AE65-08002B2E1262}\ndel lock.bat";
file.close();
} break;
case '3':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{0DF44EAAFF21-
4412-828E-260A8728E7F1}\ndel lock.bat";
file.close();
} break;
case '4':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{208D2C60-
3AEA-1069-A2D7-08002B30309D}\ndel lock.bat";
file.close();
} break;
case '5':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{20D04FE0-
3AEA-1069-A2D8-08002B30309D}\ndel lock.bat";
file.close();
} break;
case '6':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{645FF040-
5081-101B-9F08-00AA002F954E}\ndel lock.bat";
file.close();
} break;
case '7':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{6DFD7C5C-
2451-11d3-A299-00C04F8EF6AF}\ndel lock.bat";
file.close();
} break;
case '8':
{
ofstream file;
file.open("lock.bat");
file<<"ren "<<fold_name<<" "<<fold_name<<".{7007ACC7-
3202-11D1-AAD2-00805FC1270E}\ndel lock.bat";
file.close();
} break;
default :
{
cout<<"\n\n Invalid Choice";
cout<<"\n\n\n\n\n\n\n\t\t\t\t\t\t\tpress any key ...";
getch();
clrscr();
goto qwe;
}
}//ch
}break;//case1
case 'b':
case 'B':
{
char ufold_name[20],ch1;
dfg:clrscr();
print();
cout<<"\n\n In which special folder you have converted your
folder:";
choice();
cin>>ch1;
switch(ch1)
{
case '1':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{00022602-0000-0000-C000-
000000000046}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
case '2':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{0CD7A5C0-9F37-11CE-AE65-
08002B2E1262}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
case '3':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{0DF44EAA-FF21-4412-828E-
260A8728E7F1}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
case '4':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{208D2C60-3AEA-1069-A2D7-
08002B30309D}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
case '5':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{20D04FE0-3AEA-1069-A2D8-
08002B30309D}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
case '6':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{645FF040-5081-101B-9F08-
00AA002F954E}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
case '7':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{6DFD7C5C-2451-11d3-A299-
00C04F8EF6AF}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
case '8':
{
ofstream file;
file.open("unlock.bat");
file<<"ren "<<fold_name<<".{7007ACC7-3202-11D1-AAD2-
00805FC1270E}"<<" "<<fold_name<<"\ndel unlock.bat";
file.close();
} break;
default :
{
cout<<"\n\n Invalid Choice";
cout<<"\n\n\n\n\n\n\n\t\t\t\t\t\t\tpress any key ...";
getch();
clrscr();
goto dfg;
}
}//ch
}//case2
case 'c':
case 'C':
{
exit(0);
}
default :
{
cout<<"\n\n Invalid Choice";
cout<<"\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\tpress any key ...";
getch();
clrscr();
goto asd;
}
}//switchkk
break;}//if
else
{
cout<<"\a\n\n Renter secret code :";
goto abc;
}
}//for
}//main
void print()
{
cout<<"\n********************************************************
************************";
textcolor(RED);
cprintf("\n NAME CRACKER");
cprintf("\n\n
Developed by: RITESH KAWAKDAR");
textcolor(WHITE);
cout<<"\n\n******************************************************
**************************";
}
void choice()
{
cout<<"\n\n\n\n\t1> Media Clip";//{00022602-0000-0000-C000-
000000000046}
cout<<"\n\n\t2> Cabinet File"; //{0CD7A5C0-9F37-11CE-AE65-
08002B2E1262}
cout<<"\n\n\t3> Taskbar And Start Menu";//{0DF44EAA-FF21-4412-828E-
260A8728E7F1}
cout<<"\n\n\t4> My Network Places";//{208D2C60-3AEA-1069-A2D7-
08002B30309D}
cout<<"\n\n\t5> My Computer"; //{20D04FE0-3AEA-1069-A2D8-
08002B30309D}
cout<<"\n\n\t6> Recycle Bin"; //{645FF040-5081-101B-9F08-
00AA002F954E}
cout<<"\n\n\t7> Folder Option"; //{6DFD7C5C-2451-11d3-A299-
00C04F8EF6AF}
cout<<"\n\n\t8> Network Connection";//{7007ACC7-3202-11D1-AAD2-
00805FC1270E}
cout<<"\n\n\n\n\n\n Enter Your choice : ";
}

 

download or view pdf files for some more tweks

READ COMPLETE TWEAKS

 

Right Click and click on save target as to DOWNLOAD PDF

 
New Post
8/14/2008 2:35 PM
 

Excellent work.


AskVG.com - Tweaking with Vishal

 
New Post
8/14/2008 2:39 PM
 

Mujhe toh C++ ke din yaad aa gaye.......nice thnx


Hari Maurya's TechSurface

Its My World, Its Mera Windows and I proud to be a MWians
 
New Post
8/14/2008 2:46 PM
 

nice code...

thx 4 share


WinSpark.net | Spark your Windows TECH Irony | we are redefining it
 
New Post
8/14/2008 11:12 PM
 

whoah.....what a matrix like code........big code big use............thanks

 
New Post
8/16/2008 12:28 AM
 

gr8 job. One the best thing that I liked most in this article.... You have coded this in native C++ code.

Thanks !!! Keep rocking


Ramesh Kumar
Email: ramesh.windows[at]hotmail.com
My Blog: WindowsValley.com

 
New Post
8/16/2008 7:45 PM
 

thankz everyone for appreceating my work

 
New Post
8/19/2008 2:43 PM
 

i have created that in VISUAL BASIC ALSO

DOWNLOAD FROM HERE

 
New Post
2/26/2009 11:41 AM
 

Awesome article. Thanks for sharing it. 

 
Previous
 
Next
HomeHomeGeneralGeneralProgrammingProgrammingfolder locker source code in c++folder locker source code in c++


   User Log In Minimize  


Register
Forgot Password ?

     
  
   Follow Us Minimize  
     
  
     Minimize