I am trying to use vbscript\'s Eval (or maybe I need Execute) to create some variables from the key names from an ini file. The ini file can have unlimited unknown key=val p
You eval'd the literal code pair.key = pair.value. That assigns to pair.key.
pair.key = pair.value
pair.key
You want to assign to the value of pair.key – if pair.key is myPath, you want to eval myPath = pair.value. You can do that by concatenating strings:
myPath
myPath = pair.value
Execute(pair.name + " = pair.value")