How to create a batch file to auto start mining on Windows startup or after system crash and resets.
This is for windows 10 only since I am running Windows 10. I am also using MSI afterburner. Please do not attempt this until you have perfected your undervolt/overclock or whatever settings you want to mine at. They must be stable and able to start up without any issues.
I have saved my settings in MSI afterburner. I have checked the boxes, which would start up afterburner when windows start and to minimize it. I have also checked to apply overclock settings on startup.
Ok first of all you need to set up your windows login so that you don't have to enter a password before you can get main GUI. Just go to settings and accounts. Create new account or change your account to not have a password (leave it blank). Go down to sign in options, select "never" in the box that ask when windows should require you to type in a password. Scroll down and you will see related settings. Click on that. Scroll down to where it says, "show windows background pic...." turn that off. Doin all this will allow you to skip the sign in screen when windows boots up or restarts. This is what we need. The batch file will not execute by itself if you do not do this. It will wait for you to sign in with your password then execute the mining batch file.
I am using CDM 5.3 and dual mining. In the readme file under the -r option, if you enable -r 1, it will execute a reboot.bat file. He also includes the code, shutdown /r /t 5 /f . Open up a new notepad and insert that code. Save it as reboot.bat. Make sure you don't save it as a text file, make sure it's a executable bat file.
Now open up a new notepad file and enter the following
echo off
start /d " this is where your start.bat address goes" start.bat
example:
echo off
start /d "C:\Users\Desktop\my files\Claymore's Dual Ethereum+Decred AMD GPU Miner v5.3" start.bat
Save the file as whatever you want to name it. (Make sure you use the quotation marks, before the C: and after the folder name where your batch file is)
Now right click on that file and create a shortcut.
Right click on that shortcut and select cut.
Go to the search the web and windows box (next to the windows startup icon) and type in run.
When the run window pops up type in shell:startup
Now you should be in the startup folder where you can add batch files.
Right click and select paste or you can click the home tab and select paste.
So in theory when you miner crashes and executes the reboot.bat, your system restarts, upon system startup it will execute the bat file you just created. If you're using MSI afterburner you settings will already be loaded and you will be mining again.
I had to google all this and put it all together. I did not invent this. Use at your own discretion.
This is for windows 10 only since I am running Windows 10. I am also using MSI afterburner. Please do not attempt this until you have perfected your undervolt/overclock or whatever settings you want to mine at. They must be stable and able to start up without any issues.
I have saved my settings in MSI afterburner. I have checked the boxes, which would start up afterburner when windows start and to minimize it. I have also checked to apply overclock settings on startup.
Ok first of all you need to set up your windows login so that you don't have to enter a password before you can get main GUI. Just go to settings and accounts. Create new account or change your account to not have a password (leave it blank). Go down to sign in options, select "never" in the box that ask when windows should require you to type in a password. Scroll down and you will see related settings. Click on that. Scroll down to where it says, "show windows background pic...." turn that off. Doin all this will allow you to skip the sign in screen when windows boots up or restarts. This is what we need. The batch file will not execute by itself if you do not do this. It will wait for you to sign in with your password then execute the mining batch file.
I am using CDM 5.3 and dual mining. In the readme file under the -r option, if you enable -r 1, it will execute a reboot.bat file. He also includes the code, shutdown /r /t 5 /f . Open up a new notepad and insert that code. Save it as reboot.bat. Make sure you don't save it as a text file, make sure it's a executable bat file.
Now open up a new notepad file and enter the following
echo off
start /d " this is where your start.bat address goes" start.bat
example:
echo off
start /d "C:\Users\Desktop\my files\Claymore's Dual Ethereum+Decred AMD GPU Miner v5.3" start.bat
Save the file as whatever you want to name it. (Make sure you use the quotation marks, before the C: and after the folder name where your batch file is)
Now right click on that file and create a shortcut.
Right click on that shortcut and select cut.
Go to the search the web and windows box (next to the windows startup icon) and type in run.
When the run window pops up type in shell:startup
Now you should be in the startup folder where you can add batch files.
Right click and select paste or you can click the home tab and select paste.
So in theory when you miner crashes and executes the reboot.bat, your system restarts, upon system startup it will execute the bat file you just created. If you're using MSI afterburner you settings will already be loaded and you will be mining again.
I had to google all this and put it all together. I did not invent this. Use at your own discretion.