So.. i dedicided to help out with this abit more
use this to change/add strings to registry!
You can use this on ANY place in the registry, not only local user.
Example: writereg("HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\Diablo II","DiabloIICD","I:")
to change the '(default)' key use a blank key ""
if the string value entered is a path, use a double slash \\, or change the code posted one post above this
function writereg(path$,key$,string$)
if file exist("c:\regwrite.reg") then delete file "c:\regwrite.reg"
open to write 1,"c:/regwrite.reg"
write string 1,"REGEDIT4"
write string 1,""
write string 1,"["+path$+"]"
write string 1,chr$(34)+key$+chr$(34)+"="+chr$(34)+string$+chr$(34)
close file 1
execute file "regedit.exe","/s c:/regwrite.reg","c:/windows/system32",1
wait 10
if file exist("c:\regwrite.reg") then delete file "c:\regwrite.reg"
endfunction
Please let my now if it works for you all and let me know what you think of it
we'll all turn mad someday..