a couple questions.

Where does this file come from - is it generated by you?

Why are you using a BAT file to set environment vars?

Is there any reason you can not use some other format of file to hold your variable values?

Why are you trying to parse the BAT file in stead of just referencing the environment variable directly?

Check out the "Execute" command.
_________________________
Home page: http://www.kixhelp.com/hb/