>>>>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
>
>I'm thinking this also.
>Which API call I can use to restore normal Alt+F behaviour ?
>I think I need something like switching to other application and then back to my application programmatically.
Well, as a kludge you can add to the same bat file call to some other application. It sure doesn't sound like a good application this pg_dump.exe if it changes keys behavior.
If it's not broken, fix it until it is.
My Blog