How can I save my bat file permanently?

Sorry if I'm using the wrong terms, I'm new to this. so I was trying to get this command (taskkill / f / t / im (process)) to keep repeating because the process I'm trying to kill keeps returning. so I figured that if I can get the command to keep repeating, that would close the process. please i need help, thanks.

+3


source to share


1 answer


Just scroll

@echo off

:loop
taskkill /f /t /im (the process)
goto loop

      

Or add a delay with ping

ortimeout



@echo off

:loop
taskkill /f /t /im (the process)
timeout /t 30 /nobreak >nul rem Change out 30 for the number of seconds needed in the delay
goto loop

      

As @MrLister said in the comments above, please refer to the issue directly. Ask yourself, "Did I get this software from a trusted source?" if not, it could be malicious. If it's safe, then why is this behavior happening? Could this be scheduled with taskcheduler? Good luck.

+1


source







All Articles