Answer the question
In order to leave comments, you need to log in
Closing one process after starting another?
You need to write a BAT file with the following functionality:
Starting the "[email protected]" process,
As soon as the user starts WarFace "Game.exe",
the "[email protected]" process closes,
and it is desirable that something the command line is visible
Thank you!
Answer the question
In order to leave comments, you need to log in
cmdow @ /HID
Echo off
START mailrugames://play/0.1177
@echo off
:label
ping -n 15 127.0.0.1 > NUL
setlocal ENABLEDELAYEDEXPANSION
Set Process=game
tasklist | Find /i "%Process%.exe" || (goto Else)
:THEN
taskkill /f /im [email protected]
Exit
Goto end
:ELSE
GOTO label
Exit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question