Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :: BatchGotAdmin
- ::-------------------------------------
- REM --> Check for permissions
- >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
- REM --> If error flag set, we do not have admin.
- if '%errorlevel%' NEQ '0' (
- echo Requesting administrative privileges...
- goto UACPrompt
- ) else (
- goto gotAdmin
- )
- :UACPrompt
- echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
- set params = %*:"="
- echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
- "%temp%\getadmin.vbs"
- del "%temp%\getadmin.vbs"
- exit /B
- :gotAdmin
- pushd %~DP0
- ::--------------------------------------
- :: Modified for https://vegamining.blogspot.com/
- :: Thanks for your tips as well!
- :Start
- devcon.exe disable "PCI\VEN_1002&DEV_687F"
- timeout /t 5
- devcon.exe enable "PCI\VEN_1002&DEV_687F"
- :: ***********************************************************************
- :: ** REPLACE LINE BELOW WITH YOUR LINE FROM "Run_OverdriveNTool.bat" ****
- OverdriveNTool.exe -r1 -r2 -r3 -r4 -p1Vega64 -p2Vega56 -p3Vega56 -p4Vega64
- :: ***********************************************************************
- :: ***********************************************************************
- start "XMR-STAK Unified" xmr-stak.exe --config config.txt
- echo.
- echo.
- echo Press any key to restart the miner...
- pause>NUL
- Taskkill /im xmr-stak.exe /f
- GOTO :Start
- POPD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement