1. **Check the Files**: Make sure `longcoin-cli.exe` is in the same folder as your `
mine.bat` file (e.g., `C:\LongCoin`). If it’s not, move it there.
2. **Edit the `.bat` File**: Open `
mine.bat` and update the command to include the full path to `longcoin-cli.exe`, like this:
"C:\LongCoin\longcoin-cli.exe" generatetoaddress 1 YOUR_WALLET_ADDRESS
3. **Open Your Wallet**: Before running the script, make sure your Longcoin wallet is open and fully synced.
4. **Run as Admin**: Right-click `
mine.bat` and select "Run as Administrator" to avoid permission issues.
5. **Test the Command**: Open Command Prompt, go to the folder with `longcoin-cli.exe`, and run:
longcoin-cli.exe getblockchaininfo