Adding /d switch

1. Adding `/d` to change current drive in addition to changing current directory for a drive.
2. Enclose quote `"%~dp0"` allow space in `cd` command (to be safe).
3. Allow user run this script without set **Administrator** in properties.

Running `*.cmd` As Administrator will spawn on `C:\WINDOWS\system32` and break if `xmrig.exe` not in `C:\` (Default UAC)
This commit is contained in:
Anime4000 2021-12-04 19:42:04 +08:00 committed by GitHub
parent 718c7e0fc1
commit 7aa4a788f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,6 @@
:: Choose pools outside of top 5 to help Raptoreum network be more decentralized!
:: Smaller pools also often have smaller fees/payout limits.
cd %~dp0
cd /d "%~dp0"
xmrig.exe -a gr -o raptoreumemporium.com:3008 -u WALLET_ADDRESS -p x
pause