TIMEOUT 40
@echo off
set GPU_FORCE_64BIT_PTR=0
set GPU_MAX_HEAP_SIZE=100
set GPU_USE_SYNC_OBJECTS=1
set GPU_MAX_ALLOC_PERCENT=100
set GPU_SINGLE_ALLOC_PERCENT=100
@echo on
EthDcrMiner64.exe -epool eu1.ethermine.org:4444 -esm 1 -ewal 0**************9.comp -epsw x -di 01245
Not what I asked for but this put me on the right path, For anyone interested in temporarily disabling a gpu from cmd;
Download the microsoft devcon tool
Copy the Matching Device Id field in device manager properties of the gpu
Open a command-prompt in your devcon map
Run this command:
devcon findall * | find /i " said device ID " > "%temp%\devcon.txt"
Open the file %temp%\devcon.txt and find your device
Copy the ID (you only need up until the end of the SUBSYS field) and put it between ""
devcon disable " ID from devcon.txt "
I had to put the enable command in a separate bat file that launches near the end. with a timeout to re enable after it starts mining
final code:
TIMEOUT 2
cd\
cd Program Files (x86)\Windows Kits\10\Tools\x64
devcon disable "PCI\VEN_10DE&DEV_1381&SUBSYS_8A9...."
cd\
cd Program Files\claymoreminer
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
start cmd /k Call reenable750.bat 4444
EthDcrMiner64.exe -epool eu1.ethermine.o........
If anyone knows a more elegant way feel free to let me know