Sorry to Necro post but same process in other miners like Claymore's? I couldve sworn we dropped this into the config file a long time ago. IM prob wrong. Its been too many years
Same process works for ANY miner under Windows.
It is done via a .BAT file because this is a Windows Environment configuration variable, and you need it set before you try to run the program that needs that variable (setting it WHILE a program is running doesn't work as the program only checks for the variable when the program initiates under normal circumstances).
It's POSSIBLE to have the program change it and then use it, but it's a TON easier to just put it in a .bat file.