envsource = .stream~new(somescript.cmd)\nlines = envsource~makearray\ndo i = 1 to lines~lines\n if lines[i]~word(1) = "set"\n then do\n parse var lines[i] . envvar '=' newval\n value('OS2ENVIRONMENT', envvar, newval)\n end /* End if */\n else iterate\nend /* End do loop */\ndrop lines\nenvsource~close
Note that I haven't actually tested this, but should give you the general idea. It assumes you can read the file, of course, but if you can execute it I'm sure you can read it. Sure, it's an ugly hack, but it would work, and would permit you to let someone change the file without worrying about it breaking your program.