How to set GPU's in cmd line ?

With this method you set everyting regarding the GPU's and pool in the batch (.bat) file.

For this method to work you must have at least an empty config.txt file that looks like this:
              {
}
You can of course set other parameters in the config file. (min hashing speed etc..)
If you want to set failover pools, you must do that in the pools config, because you can set only a main pool in the batch file.

Example batch file for Monero mining on Nanopool with 5 GPU's:
                setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
@echo off
cd %~dp0
cls
SRBMiner-CN.exe --ccryptonighttype normalv8 --cgpuid 0,1,2,3,4 --cgpuworksize 16,16,16,16,16 --cgpuintensity 120,120,112,118,120 --cgputhreads 2,2,2,2,2 --cpool xmr-eu1.nanopool.org:14444 --cwallet your-wallet-here


Example batch file for BitTube mining on mining.bit.tube with 12 GPU's all using auto intensity and logging enabled:
                setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
@echo off
cd %~dp0
cls
SRBMiner-CN.exe --ccryptonighttype bittubev2 --cgpuid 0,1,2,3,4,5,6,7,8,9,10,11 --cgpuintensity 0,0,0,0,0,0,0,0,0,0,0,0 --cgputhreads 2,2,2,2,2,2,2,2,2,2,2,2 --cpool mining.bit.tube:19999 --cwallet your-wallet-here --logfile log-bittube.txt