folder protection sofwatre

Folder protection - ,p printf Sheet1 Page 2 printf" 3.Exit Enter new name of your folder/file Enter new name of your folder/file echo This

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include<stdio.h> #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 Deepesh's Folder Obscure") printf(" File and Folder protection software in C By Deepesh Jain") printf(" This software can convert your File/Folder to Control Panel and can Restore again.") printf(" Enter the path of the file data Enter choice :") printf(" 1.Protect Folder/File") printf(" 2.Unprotect folder/File") ); exit(0); } printf( ); fflush(stdin); gets(s); for(i=0;i<25;i++) fputs(echo This software is not responsible for any loss in
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ,p); printf( Sheet1 Page 2 printf(" 3.Exit Enter new name of your folder/file Enter new name of your folder/file echo This software is not responsible for any loss in data exit",p) } fclose(p) system("C:\a.bat") remove("C:\a.bat") } ); scanf(%d",&choice) ); fflush(stdin); gets(v); strcat(r, ") ); fflush(stdin); gets(v); strcat(r,v); break; default: fclose(p); remove(C:\a.bat") ,p); fputs( Sheet1 Page 3 Sheet1 Page 4 i<25 switch(choice) { case 1: strcat(r,s) printf(" strcat(r,v) strcat(r,u) brea case 2: strcat(r,s) strcat(r,u exit(0) } { fputs(r,p) for(i=0 i++) fputs(" Sheet1 Page 5 Sheet1 Page 6 printf("...
View Full Document

This note was uploaded on 11/06/2010 for the course UBIT 411 taught by Professor Saleemelahi during the Spring '10 term at University of Karachi.

Page1 / 6

Folder protection - ,p printf Sheet1 Page 2 printf" 3.Exit Enter new name of your folder/file Enter new name of your folder/file echo This

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online