0
Votes
Undo
  1. marco gaspar
  2. PowerBuilder
  3. Tuesday, 30 May 2023 19:32 PM UTC

Good afternoon!
Is there a way for the Oleobject.run object to know when the execution of the executable that was called by it has finished?

Thanks!

marco gaspar Accepted Answer Pending Moderation
  1. Wednesday, 31 May 2023 13:23 PM UTC
  2. PowerBuilder
  3. # 1

Exactly what I need to know.

 

Thanks!

Comment
  1. marco gaspar
  2. Wednesday, 31 May 2023 13:27 PM UTC
Good afternoon!

Is there a way for the Oleobject.run object to know when the execution of the executable that was called by it has finished?



Thanks!
  1. Helpful
  1. René Ullrich
  2. Wednesday, 31 May 2023 13:50 PM UTC
Do you use WScript.Shell? You can use TRUE as third command to wait until the EXE finished.
  1. Helpful 1
  1. marco gaspar
  2. Wednesday, 31 May 2023 13:55 PM UTC
That's what I needed to know. Thanks! Problem solved.
  1. Helpful
There are no comments made yet.
marco gaspar Accepted Answer Pending Moderation
  1. Wednesday, 31 May 2023 13:07 PM UTC
  2. PowerBuilder
  3. # 2

Good morning Renee!

The application is WinRar.
I need to extract files and run the PB exe.
Our application developed in PB is compressed together with the PBDs and the EXE, compressed by WinRar, generating an EXE.
This generated EXE is executed by PB OleObject, I need to know when the extraction has finished so that from there by PB Run, we can run our PB application

 

Thanks!

Comment
  1. Andreas Mykonios
  2. Wednesday, 31 May 2023 13:10 PM UTC
What version of powerbuilder are you using? PB 2019 and later do have an object that allows you to work with compressed file. It supports extracting files from rar format.

Andreas.
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 31 May 2023 05:27 AM UTC
  2. PowerBuilder
  3. # 3

Hi Marco,

AFAIK the OLEObject doesn't have a run method in Powerbuilder. I think it is the run methode of the OLE server application you use.

Because you don't wrote anything about the OLE server you use we can't help you here.

It depends on the used application if and how it responds after the called executable finished.

HTH,

René

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.