Code:
Break On
$rc=SetOption( "NoVarsInStrings", "ON" )
If Open(1,'c:\data\scripts\junk.txt') = 0
$raw_line = ReadLine(1)
While @ERROR = 0
$raw_line = Trim(SubStr(Lcase($raw_line),5))
$var_name = left($raw_line, instr($raw_line,"=")-1)
$var_value = substr($raw_line, instr($raw_line,"=")+1)
;? "$"+$var_name+"="+$var_value
$rc=execute ("$" + $var_name + "='" + $var_value + "'")
$raw_line = ReadLine(1)
Loop
$rc=Close(1)
EndIf
? '___________________________________________________________________'
?
? "Output:"
? "$autodeploy_process_type=" + $autodeploy_process_type
? "$timezone=" + $timezone
? "$days_to_retain_full_workstation_backup=" + $days_to_retain_full_workstation_backup
? "$distribution_medium=" + $distribution_medium
? "$serialnum=" + $serialnum
? "$machinetype=" + $machinetype
? "$comppath=" + $comppath
or
Code:
Break On
$rc=SetOption( "NoVarsInStrings", "ON" )
If Open(1,'c:\data\scripts\junk.txt') = 0
$raw_line = ReadLine(1)
While @ERROR = 0
$mod_line = Trim(Lcase(SubStr(left($raw_line, instr($raw_line,"=")),5) +
"'" + substr($raw_line, instr($raw_line,"=")+1) + "'"))
$rc=execute ("$" + $mod_line)
$raw_line = ReadLine(1)
Loop
$rc=Close(1)
EndIf
? '___________________________________________________________________'
?
? "Output:"
? "$autodeploy_process_type=" + $autodeploy_process_type
? "$timezone=" + $timezone
? "$days_to_retain_full_workstation_backup=" + $days_to_retain_full_workstation_backup
? "$distribution_medium=" + $distribution_medium
? "$serialnum=" + $serialnum
? "$machinetype=" + $machinetype
? "$comppath=" + $comppath