>>Here's what I do most of the time. Sometimes this gets more complicated - see
Capture error output from PkZip25 Thread #
1061161 - but basically this is it. Just plain old API_APPRUN, and oprocess.LaunchAppAndWait.
>
>Thank you.
>I was able to run non empty bat files. I can use unmodified API_APPRUN for this.
>
>After running bat file containing single line exit Alt+F key works.
>After running bat file containg 3 lines
>
>set pgpassword=x
>C:\PROGRA~1\POSTGR~1\8.0\PGADMI~1\pg_dump.exe -Z9 -b -v -f "I:\051027 DEMO backup.backup" -F c -h andrus -U postgres mydb
>exit
>
>Alt+F does not work.
>So the problem persists.
Did you try it with a different command? I am thinking, may be it's related to this particular pg_dump exe
If it's not broken, fix it until it is.
My Blog