Run exe from Forms 6i

pts.
Tags:
Oracle
SQL
Hi Can I run an external exe app from a when-button-pressed trigger? If the exe expects input parameters and outputs a code can these also be processed by forms 6i? If so, how do I acheive this? My OS is Windows 2000. Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hello,

Yes, it is possible to run an external exe from a when-button-pressed trigger. We do this by the call of the procedure win_api_shell.winexec which is part of the library d2kwutil (we start the program acrobat reader). The Command-Parameter can include input-parameters for the external exe.

I don’t know if it is possible to handle the output of an external exe because we do not need this feature.

I hope this helps.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    You can run an external exe using the DDE package. With this package you can set the focus to that app, end it, etc... but I don't remember if it's possible to process the output of the app (see help). Here is an example: Declare myApp PLS_INTEGER; Begin myApp := DDE.App_Begin(AppString,DDE.APP_MODE_MINIMIZED); DDE.App_Focus(myApp); End; AppString can be a string with the exe name (with path if needed) and command line parameters. myApp is a number used to identify the application (like a handle). Hope it helps.
    69,475 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following