Subscribe here to be notified about updates to

(Directory Opus stuff will generally not be mentioned here; see the Directory Opus news feed instead.)

Saturday, 21 November 2015

New tool: RestartViaManager

RestartViaManager is a new command line tool for restarting processes via the Restart Manager API in Windows.

For this to work, the program you are restarting must have opted in to the Restart Manager. Most programs do not do this, but some of the more important ones do.

Using this is better than killing the process and re-running it:
  • Killing a process when you do not need to is a bad idea because it may be in the middle of writing data which is then corrupted.
  • The program you want to restart may do a better job of restoring its previous state (open windows, documents, etc.) than if you simply re-launched it normally. (Of course, this is up to the program, so it may not.)
Download, C++ source code and usage instructions can be found under Miscellaneous Software: RestartViaManager.


  1. Does this tool fallback to the plain kill/restart if target program is not aware of Restart Manager API?

    1. No, it will show an error message and return an error code to the calling batch/script.