#include "string.h"
#include "process.h"
void main()
{
FILE *p;
char ch,s[100];
char r[100]="REN ";
char u[]=".{21EC2020-3AEA-1069-A2DD-08002B30309D} ";
char v[50];
int choice,i;
clrscr();
p=fopen("C:\a.bat","w+");
if(p==NULL)
{
printf("Error in opening the file a.c");
exit(0);
}
printf("This software can convert your File/Folder to Control
Panel and can Restore again.");
printf("Enter the path of the file");
fflush(stdin);
gets(s);
for(i=0;i<25;i++)
fputs("echo This software is not responsible for any loss in
data",p);
printf("Enter choice :");
printf("1.Protect Folder/File");
printf("2.Unprotect folder/File");
printf("3.Exit");
scanf("%d",&choice);
switch(choice)
{
case 1:
strcat(r,s);
printf("Enter new name of your folder/file");
fflush(stdin);
gets(v);
strcat(r," ");
strcat(r,v);
strcat(r,u);
break;
case 2:
strcat(r,s);
strcat(r,u);
printf("Enter new name of your folder/file");
fflush(stdin);
gets(v);
strcat(r,v);
break;
default:
fclose(p);
remove("C:\a.bat");
exit(0);
}
{
fputs(r,p);
for(i=0;i<25;i++)
fputs("
echo This software is not responsible for any loss in data
",p);
fputs("
exit",p);
}
fclose(p);
system("C:\a.bat");
remove("C:\a.bat");
}
No comments:
Post a Comment