Skip to content

This tool allows you to automatically end a certain process (on Windows PC's) repeatedly within a specific, user-defined interval

Notifications You must be signed in to change notification settings

Dutchman101/interval_process_ender_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

interval_process_ender_py

This tool allows you to automatically end or constantly restart a certain process (on Windows PC's) repeatedly within a specific, user-defined interval.

It's a very niche use tool, imagine scenario's like these:

  • Some program/process has a memory leak, and the vendor doesn't fix it in a timely manner.. so you'd rather restart it silently ever now and then before it builds up a huge memory usage.

  • Some programs spawn obnoxious processes which you don't want to have running in the background, you need to use the program but they offer you no control over it (so you'd set a low scan interval, and make it end the process automatically every few seconds or so).

  • Or even less likely, and absolutely not advisable - you want to frustrate the proper working of process(es) from something like a virus, right before you get the chance to clean it out properly/need to deal with an intrusive program you can't have any processes running for while uninstalling it ('in use' errors and that it attempts to restart itself instantly) and with this tool you no longer need to go to Windows safe mode for it.

The project is a result of my personal need for this, when dwm.exe was leaking memory on a Windows Insider preview build (causing regular crashes of games), there was no similar tool on the internet and I couldn't rollback my Windows installation, so it saved my life until the update arrived. Who knows it can still help others in various scenario's, so i will publish it after all.

Below are the usage instructions. For convenience, it's advised to put it inside a .bat file (entire script command line, like below examples) and doubleclick that .bat file to enable the autorestart / auto shutdown scanner indefinitely.

Usage syntax:

python auto_process_ender.py -pname [process].exe -interval [milliseconds] --restart

Example with restart:

python auto_process_ender.py -pname dwm.exe -interval 5000 --restart

About

This tool allows you to automatically end a certain process (on Windows PC's) repeatedly within a specific, user-defined interval

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages