How to restart the BAT file every once in a while on Windows

I recently wrote one .bat Script on Windows My ethereum When I don’t use my gaming PC to disrupt newbies. I have a friend who is also trying to mine cryptocurrency, but their machine has an AMD processor; every once in a while, the processor and the mining executable will start fighting, and all mining will stop.

Own mining .exe Stopping work but not terminating the process is a very frustrating problem.I thought it was a Windows sleep/hibernation Problem, but the solution I wrote in that article did not solve the problem. I adopted the next best solution: terminate and restart the process after a given time:

start PhoenixMiner.exe -pool -pool2 -wal WALLET_ADDRESS -proto 3
echo "-------------------------------MINER STARTED"
timeout /t 3600 >null
echo "-------------------------------MINER TERMINATED, RESTARTING"
taskkill /f /im "PhoenixMiner.exe" > null
goto loop

The script terminates the process and restarts it after an hour, regardless of whether the mining is running smoothly or has exited. This is obviously not a perfect solution. A better answer is to create a script to listen for errors and restart the process immediately. I will argue that this is a viable solution so that mining won’t be down all night!

  • Vibration API

    Many of the new APIs provided to us by browser vendors are more targeted at mobile users than desktop users.One of those simple APIs Vibration APIThe Vibration API allows developers to use JavaScript to guide the device to…

  • Interview with Eric Meyer

    Your early CSS books helped drive my love for front-end technology. What made you fall in love with CSS and motivated you to write CSS? At first glance, it is simple compared to a table and a spacer…

  • Use PHP to create a Digg URL

    Digg recently launched a lovely new feature that allows users to create a Tiny Digg URL, display a Digg banner at the top, and allow easy access to article voting on the page. Although I like to visit Digg every once in a while…

  • Web notification API

    Every UI framework has the same set of widgets, which are almost indispensable for modern websites: modals, tooltips, button types, and notifications. One problem I found is that each site has its own widget colors, styles, etc.-users cannot get a consistent experience. Obviously…

Leave a Reply

Your email address will not be published. Required fields are marked *