A Self Destructing Program using C/C++ Programming

This program will destroy itself upon execution. The program will cause the .exe file to be deleted upon execution. That is this program is capable of destroying itself upon execution. Here is the code



#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]);
}


HOW TO COMPILE

Load the source code to the compiler and compile (press Alt-F9) and then press F9. This will generate the .exe file in the current directory (Bin directory). Execute this .exe file it will destroy itself upon execution.

Stay withAspirinebd Thank you.



Thanks for your attention, also thanks for staying with Aspirinebd
What is good about our site, or any ill feelings to share with you our comments. Waiting for your comments

2 comments:

Tanmay Chakrabarty said...

Cool. Whatever...nice to find this blog. Following.

Unknown said...

Thank you very much for staying with us. Aspirinebd must be delight you. Thank you. Try to Stay with us and comment respictively.