A place for technology lover, a complete innovative place to guide you in your innovention and make your ideas come true.Be it design,coding,circuits or taking a break in life. To grow your knowledge and keep you motivated ,inspired and energetic.
Showing posts with label password protection. Show all posts
Showing posts with label password protection. Show all posts
Friday, 25 October 2013
password protect folder
cls
Labels:
batch programming,
password protection,
windows 7
Thursday, 27 June 2013
c program to make password protected folder
This is a program to open any folder in c drive in which you have set a password...
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<process.h>
int main()
{
char string1[20]="abcdefgh";
char string2[20];
int i;
printf(" enter password for the notepad file that you want to open \n ");
gets(string2);
i=strcmp(string1,string2);
if(i==0)
{
printf(" password is correct ");
system(" explorer c:\\bluej ");
}
else
printf(" invalid password enter the correct password ");
getch();
}
Here, the program is written in dev c++ instead of void , int main() is used...."abcdefgh" is the password name and "bluej" is the folder you want to open..you can write any other folder name and give any other password....
and note that the folder which you want to protect by password has to be hidden
to do that ..........
1) right click on the folder icon
2) go to properties
3) under the general tab click on hidden tab.........
if you have any problem or suggestion your comments are invited.....
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<process.h>
int main()
{
char string1[20]="abcdefgh";
char string2[20];
int i;
printf(" enter password for the notepad file that you want to open \n ");
gets(string2);
i=strcmp(string1,string2);
if(i==0)
{
printf(" password is correct ");
system(" explorer c:\\bluej ");
}
else
printf(" invalid password enter the correct password ");
getch();
}
Here, the program is written in dev c++ instead of void , int main() is used...."abcdefgh" is the password name and "bluej" is the folder you want to open..you can write any other folder name and give any other password....
and note that the folder which you want to protect by password has to be hidden
to do that ..........
1) right click on the folder icon
2) go to properties
3) under the general tab click on hidden tab.........
if you have any problem or suggestion your comments are invited.....
Subscribe to:
Posts (Atom)
About the author
Scholar Ratan pal singh is a Google scholar, a man with innovative ideas and a nothing is impossible attitude, is a tech-lover.
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.
"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.
"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."