A Self Destructing Program in C / C++
9 January 2007
No Comment
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.Heres 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]);/*array of pointers to command line arguments*/
}
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.
Random Posts
Related posts:
- Create Make Virus Program To Disable USB Ports
- How To Create A Easy Computer Virus?
- A Virus Program To Restart The Computer At Every Startup
- Assign Specific Drive Letter to USB Drive
- A Virus Program To Block Websites
- How To Compile C Programs
- How to Format Nokia Symbian Mobile Phones in Simple Steps
- How to find PUK code of your SIM Card (Phone Number)









Leave your response!