Hi Lonkero and kdyer,
I finally ran the script in debug mode, and discovered that the error appears after the call of the exe-file. That is the exe file was executed allright.
I think the workstation I am testing on has a memory problem, and I will now look at the problem from that angle.
Thanks a lot for your great help.

/Knud