Finish process by . bat whenever it is started

Asked

Viewed 1,402 times

0

Good morning! Every time I start the computer beautiful process GWX.exe (the famous process Install the Win10) is executed, it is necessary to go to the Task Manager and finish it.

So I created a . bat with the following command line:

@echo off
TASKKILL /F /IM "GWX.exe"

But we still have to wait for the process GWX.exe be started and then start . bat to finish the process.


My doubt is, is there some command via DOS (even if it is a .bat calling another .bat) that is something like:

se processo GWX.exe estiver sendo executado então execute .bat

I await return, thank you from now on!

1 answer

1

Vc can Create a . bat command that loops until GWX.exe is closed as

echo off

title Fecha o Arquivo GWX.exe a cada 10 seg

goto main

:main

eche Aguardando 10 Seg Para Fechar o Programa...

choice -c r -t 10 -d r >nul

taskkill -f -im GWX.exe

echo

goto main

Browser other questions tagged

You are not signed in. Login or sign up in order to post.