Richard said:
Unfortunately, it doesn't appear to support command line switches
following the <FullPathToProgram> parameter. And, to invoke IE in
kiosk mode, the use of the "-k" switch is necessary.
I didn't need command line support when I wrote it so I made it able to
watch several programs at once.
Since there have been quite a few downloads of it I decided to spend 10
minutes and add commandline support. This removes the multi-program
capability.
I made it a bit faster while I was at it. It is now set to restart the
watched program after about 2 seconds. Watchdog.exe runs at very low
priority (IDLE_PRIORITY_CLASS, THREAD_PRIORITY_IDLE) so may take a bit
longer on a busy machine.
http://www.mike-warren.net/Watchdog.zip (50K)
Usage:
watchdog.exe <FullPathToProgram> [Params]
eg:
watchdog.exe C:\Windows\Notepad.exe C:\ATextFile.txt
If the program path has spaces it needs to be enclosed in speech marks.
eg:
watchdog.exe "C:\Program With Spaces.exe"
It has a hidden window to allow posing posting WM_CLOSE to it.
Class name: STATIC
Window Name: Mike_Warren_Watchdog