T
T
Timafey Sadovykh2016-01-27 11:11:20
cmd/bat
Timafey Sadovykh, 2016-01-27 11:11:20

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

2 answer(s)
Y
Yuri, 2017-05-25
@likvidator22


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

A
Alexander Ananiev, 2016-02-01
@SaNNy32

To kill a process, use
taskkill /IM application.exe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question