Charlie,
I was able to extend the comspec on windows by adding /e:32768. As a
result of this change I am no longer getting the "line too long"
error. The fix in the code was to prevent the command line from
exceeding 4000 chars, which works. I was exceeding the limit on the
env space. I also read some where that there was a limit on env
variables to 8kb. Not sure if this is true on windows xp or not. I
know I am exceeding this limit and it is working fine on windows xp
once I extended the comspec.