I would appreciate some help please

Ok you guys porbly know the old batch bomb
:start
start Blah.exe
goto start
it repeativley opens the program.

Me and a buddy of mine have been trying to accomplish feat in c++ we're both brand new to programming or ive been doin it for a while just not much at a time.
but this is my only idea.

#include <iostream>

using namespace std;

int main() {
string matrix;
matrix = system("program.exe");
int x;
x = 0;
for (int x = 0; x < 1;){
system("matrix.txt");
}
cin.get();
}
its a little sloppy lol but it only opens it once
when you use

#include <iostream>

using namespace std;

int main() {
string matrix;
matrix = system("program.exe");
int x;
x = 0;
for (int x = 0; x < 1;){
system("start");
}
cin.get();
}

it works fine (dont run it and if you do run it from a flash drive so you can pull the drive out to stop it 8p )

but we just cant get the program program.exe to open reapeditivly.

we use it as a prank on our freinds at school lol lots of geeks. but i would appreciate any help Thank you (:
We're not here to help you pull stupid pranks on your friends or school computers. Come back when you have trouble with a real problem. For things like this, just Google it.
Topic archived. No new replies allowed.