خرید بک لینک

Vote count: 0

I posted a thread about how to do this in batch but it tus out batch scripting isn't very popular and I barely even know it so now I'm asking for your help doing this in C++.

here's what I tried

#include <Windows.h>
using namespace std;

void openBat(char* path) {
    system(path);
}

int main() {
    for(;;) {
    openBat("C:\Users\Ivan\Desktop\folder\run.bat");
    Sleep(1800000);
    //kill opened process
    }
    retu 0;
}

I'm not sure how to kill the opened process because every time I run the bat script it will have a new ID and I can't kill by name because I need to have 4 of these open. All help is appreciated.

asked 15 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 3 مرداد 1395 ساعت: 1:18

صفحه بندی