Is it possible to auto restart Optiminer with a script via Windows?
File *.vbs
Set WshShell = WScript.CreateObject("WScript.Shell")
Do
WshShell.Run "name.bat", 1, True
Loop Until False
Great! Thanks Night, Ill try this when I get home.
Hey -Night-, it works! Thank you. My issue though is when I try to close it manually it keeps popping back up. I had end process via task manager but thats okay. Again, thanks for the tip!
To end the restart process, you need to end the *.vbs process in the task manager. Was glad to help.
There is still one problem with restarting the miner when it issues a Windows error and the notification window pops up... This is fixed by fixing the Windows registry.
How to fix the issue with Windows registry? Sorry, am not a programmer =).
If you have errors after the failure of the miner and the Windows notification pops up, try to do this:
1.See in the group policy:
"User configuration-administrative templates-components windows-error reports windows-DISCONNECT REPORTS OF ERRORS" put the "enable" parameter.
2. Disable errors in the Windows Support Center in the control panel.
This is only in Win7 and Win8, 10. WinXP does not.
About how to do this is written in Google.
3.In the services:
Disable the "Error Registration Service".
4. Make fraud in the registry:
HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Control \ Windows \ ErrorMode
from 0 to 2
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ Windows Error Reporting \ DontShowUI
from 0 to 1