Code:
If Open(1,'c:\temp\envars.bat') = 0

$envvar = SubStr(Lcase(ReadLine(1)),5)
While @ERROR = 0
???????????????????????
$envvar = SubStr(Lcase(ReadLine(1)),5)
Loop
Close(1)
EndIf

Greetings,

The ??????????????????????? in my code represents the function that I need, but don't know and can't find. Maybe it's SET or SETL or SETM, but those don't seem to produce the results that I'm looking for.

I'm trying to read a textfile and convert each line into a variable useable by the current script. The textfile is line after line of 'set=' commands.

I need a function that will ultimately take this string: var1=abc123, and set var1 as a variable readable by the current script, just as if the statement var1=abc123 existed verbatim.

I can't call a batch before the script. The final product must be a single, packaged, executeable Kix Script.

Can you help me ?

Best regards,

Tim ==