I created a batch file and put it in the same folder at BitCoin.exe
Just create a file, like bitcoin.bat
Edit the file and paste in
echo off
:10
echo Starting BitCoin Crazy Unstable But Oh So Fast!
start /wait bitcoin.exe
date /t
time /t
ping -n 1 -w 5000 1.1.1.1
goto 10
Save the file and use it to start BitCoin. If the program crashes, it will log to console when and restart the client. This only works in the Windows Client GUI, won't work for services.
I figured I would add this if it's helpful to anyone.
Very similar to the one I've been using, actually
echo off
cd "C:\Program Files (x86)\Bitcoin"
echo Bitcoin Instability Manager
:loop
start /wait Bitcoin.exe
ping -n 1 -w 5000 1.1.1.1 >NUL
date /t
date /t >> log.txt
time /t
time /t >> log.txt
echo Bitcoin crashed, restarting it.
echo Bitcoin crashed, restarting it. >> log.txt
echo. >> log.txt
goto loop
Then you have to run it as administrator (Win7 anyway) so that it can write to the log file.
I also had to follow this: http://www.raymond.cc/blog/archives/2009/08/12/disable-program-has-stopped-working-error-dialog-in-windows-server-2008/ (ignore the first command) to get it to work, as when it would crash, that dialog would pop up and prevent the program from fully closing (thus not allowing the batch file to continue).