is there a way to autorestat a Batchfile if a exe freeze?
For example i start my miner threw a batchfile. If the miner freeze i need a tool which get the freeze close the programm a restart it through the batchfile.
There are ways to do what you want using openhardwaremonitor from http://openhardwaremonitor.org/ but programmatically killing programs and then starting them again is kind of a pain, especially when the programs are called from batch files to begin with so you need to kill batch files and exe files. If you have a dedicated mining computer (like it isn't your home PC) then you should set it up to autologin and start mining when it gets turned on. Then the simplest and most reliable way to recover from hung miners is to detect that it is hung and just reboot. So if there is an associated log entry (like a driver crash) then you can simply setup a scheduled task to run a script that reboots the computer every time the event log is triggered. Alternatively, you can use a periodic task that calls a script to use openhardwaremonitor to check for GPU usage % and if it seems like it isn't maxed, perform a reboot. I actually posted a thread with a batch file I created using openhardwaremonitor for something like that around here somewhere if you want to go look for it. The issue there is that work restarts from the pool will cause GPU % to go down, so you have to do a number of checks in a short period of time and figure out how many low % values you want to consider it a hung miner for a reboot. If the script runs and just happens to check GPU % when pool work restarts are being sent then it may think the miner is hung when it isn't. That's why something simple like an event log entry is the best solution if that will work for what you are experiencing.
Thank you already got it running. With restart if miner freeze and batch on startup.