T
T
Timafey Sadovykh2015-03-07 08:10:33
cmd/bat
Timafey Sadovykh, 2015-03-07 08:10:33

How to close process by CMD/BAT timer?

So I am not strong in this, I ask for your help!
You need to open the process (eg [email protected])
Then close the same process after 5 minutes.
Or close the [email protected] process after the user enters Warface!
Help out guys!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2015-03-07
@likvidator22

Run [email protected]
through a batch file, in which, after starting, call ss64.com/nt/timeout.html
Then www.windowsfaq.ru/content/view/68/57
To run bat without the appearance of the console, I use for myself small utility in C

#include <windows.h>

int APIENTRY WinMain(
        HINSTANCE hInstance,
        HINSTANCE hPrevInstance,
        LPSTR lpCmdLine,
        int nCmdShow
        )
{
  WinExec(lpCmdLine,0);
    return 0;
}

https://yadi.sk/d/3X79cAnFdoahU (the program is defined as a virus, so if you don't trust it, it's better to compile from the source)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question