What are Batch Files??
Batch Files are an easy way to run a command by typing the command into a text file and saving it with a particular file extension. This way instead of opening the command prompt, navigating to the correct folder, and then typing your command you can place a batch file in the same folder as ethminer and just open it. This makes things much faster and also enables you to run the file upon logging in or some other action.
There are two ways to go about this:
- By editing the batch files already in your miner's folder (if you downloaded Genoil's Miner)
- The first step to doing this is opening the folder where your miner is located.
- You should see some batch files already in the folder. Click one to see what happens.
- Once you have done that, right click the one you want to edit and select edit from the menu.
- After the file is opened you should see some text. Replace that text with what you type into the command prompt to start the miner.
- Next save your file and exit.
- Now double-click to open your file and it should start running your miner!
- By creating your own batch file with a text editor
- The first here is to open up notepad or your favorite text editor.
- One open type in the command to run you miner.
- Then save the file to the folder with your miner with a .bat extension instead of a .txt extension.
- Now run the file you just created and you should now be mining!
Batch files come in handy when you are mining in a pool. This is because the command for pool mining can be very cumbersome, so some poeple may copy and paste the command in the command prompt, but this is much sleeker and more professional way to go about it!