vbscript Eval a string to a Variable in a loop?
问题 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 pairs. I need to create a variable based on the key name no matter what. Ini File contents: myPath=c:\test myExe=myapp.exe .... xxx=123 yyy=abc My code that reads the ini and returns the key and values to an object The code I am trying to get working is here: For each pair in objINI Eval("pair.key=pair.val") Next msgbox