Wednesday, December 7, 2011

Write a C program to destruc self execution file

#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
printf("This program will destroy itself if u press any key!!!\n");
getch();
remove(_argv[0]);/*array of pointers to command line arguments*/
}

No comments:

Post a Comment