I would like to know how to loop a function to open an executable program multiple times. I tried just putting system(path) and CreateProcess(Lpath, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) in a while, do while, and for loop, but that only opens the program once.
Here's what the relevant code looks like right now:
for(int i=0; i<10; i++)
{
CreateProcess(L"C:\\Users\\Ben\\Documents\\Visual Studio 2010\\Projects\\RANDWritter\\Debug\\RANDWritter.exe", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
}
Anyone know what to do?