P.P.S. I think you'd better put something like:
"REM DON"T CHANGE THIS FILE!!! IT WILL BE OVERWRITTEN. CORRECT ONLY IN CONFIG.BAT"
at first line of miner.bat

I misunderstood this)))) Sorry. English is not my native language, I only learning...
I mean that your script overwrite miner.bat, so any changes I make to it are gone after restart of the script.
Hy или пo pyccки, miner.bat пepeпиcывaeтcя нa тo чтo в config.bat. Пoэтoмy нapoд мeняeт в нeм чeгo тo, зaпycкaeт, a oн oпять зeк мoлoтит.