The "Application flooder" although technically harmless, is a really annoying virus. Now that we're moving further along in making batch file viruses, let's stop for a second to discuss a couple of basic commands:
- echo off - This command stops the batch file from showing the commands as they are being carried out, that is the command window will not show the commands as they are being performed. However, the output or error of the commands on execution will still be printed out in the command prompt window which is exactly like the cmd.exe window. We use this command when we don't want to notify the user that something is going on, to hide unnecessary background details so that the user can't actually see what's causing trouble - which is what we're doing here. Note that the command window will still show up, but there are methods to get around even this (to which we'll get to later on).
- // - The '//' (- two slashes) is used in A LOT of places to insert comments. A comment is just some text (or string), usually inserted to give the program's reader some help in understanding the code. Whenever any compiler or say the command line interpreter bumps into // - It ignores everything that comes after it, in that line. It just skips it over, pretends there's nothing there, and moves on to the next line. In many programming languages too, like C, C++, Java etc. you will find comments exactly like these everywhere.
- Explanation: So, we start off by turning off "echo". Now, the user won't know which file is running and what's causing havoc on their innocent computer. We set a label, say x. Now "start" is used to, well, start applications. We can start these application by using the names of their executable files (the ones that runs these applications). So, the user will see - Paint, Calculator, Control Panel, NotePad, WordPad etc. - All of them opening up for seemingly no reason. Check out the last line, "goto x", remember that label we set up top named 'x'? The goto statement send the program back to the beginning causing an infinite loop (that will probably run several times a second). So, the victim's computer will be drowned in a sea of random applications coming out of nowhere, and opening up faster than he can close them. It will eat up all the RAM, making the computer lag and possibly restart or making the user push the power button. Nevertheless kids, don't try this at home.