:top1
cd C:\Users\Home\Desktop\cgminer-3.7.2-windows
START _max_smt.bat
timeout /T 1800
taskkill /f /im "cgminer.exe"
timeout /T 10
goto top1
Replace the second and third line with the proper path to you cgminer directory and third line with the name of the batch file with your cgminer settings. Time T is in seconds, so you can adjust it to your liking. Run this batch file to periodically call the batch file you'd normally run instead.
If I earn you some extra MAX - mYCNVTLbpQAXVLHPNMVcpJFxENQDNfJWQw
Evgerything is OK just old cgminer is still in the background after task kill.. did I done something wrong? I need old cgminer closed before new one is opened...
The old cgminer window will no longer be running (it will be frozen), so you don't have to worry about it. You can close it out manually. The only reason I did not add a close cmd.exe window is because I have wallets that are running in cmd windows. I've had 5 or 6 of those killed cgminer windows in the background on one machine without issue.
The cgminers close and then re-open by itself with the given time I want.
So even it crashed, it will re-open with a short time.
However, there is still an annoying issue.
The dead cgminer windows will never disappear.
How can I auto close these old cg windows?
Plz tell me,thanks.