You can't add environment variables into a sub-shell, I believe. What if you use a text file instead to store and pass parameters?
Another trick is to programmatically generate the whole batch file with parameters stored, then execute it. On Sat, Apr 26, 2014 at 2:32 AM, Gene Wirchenko <[email protected]> wrote: > The batch file was for sending E-mails using a program used by a > co-worker at the main office. My code stored each of the parameters into an > environment variable. At the end, the E-mail program was invoked and error > return data captured. The problem I ran into is that my batch file would > simply abort in the middle. There was no error message, and by adding echo > and pause commands, I was able to see where it failed EVERY TIME. It was > when it was checking for the fourth parameter. There was nothing different > about the code from the first three parameters. -- .~. Might, Courage, Vision. SINCERITY! / v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3) /( _ )\ http://sites.google.com/site/changmw ^ ^ May the Force and farces be with you! _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAGv=MJCxdXjY27zn11knPqXXVr1jQx=htwrqhol+mxosef4...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

