1. Gimmy Susan
  2. PowerBuilder
  3. Saturday, 10 August 2024 10:39 AM UTC

Hello community
I need to run a program ( *.bat ) and wait until it finishes before continuing.

I found RunAndWait by TopWizProgramming.

Unfortunately my client uses MacOs computers with Parallel emulation and the calls to the Windows system APIs fail.

Any suggestions?

Thanks in advance for your answers

Accepted Answer
Gimmy Susan Accepted Answer Pending Moderation
  1. Monday, 12 August 2024 10:15 AM UTC
  2. PowerBuilder
  3. # Permalink

ok. i create an API in c#

Comment
There are no comments made yet.
Gimmy Susan Accepted Answer Pending Moderation
  1. Monday, 12 August 2024 15:36 PM UTC
  2. PowerBuilder
  3. # 1

The error.

 

 

Comment
  1. Roland Smith
  2. Monday, 12 August 2024 16:45 PM UTC
I think Arthur is right, PowerBuilder may be working incorrectly due to the processor.
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 12 August 2024 14:04 PM UTC
  2. PowerBuilder
  3. # 2

I was under the impression that Parallels was a VM that ran a real copy of Windows within it. Maybe it is failing for a fixable reason. What exactly is failing?

Comment
  1. Arthur Hefti
  2. Monday, 12 August 2024 15:00 PM UTC
If it's on a Mac with a M processor, I assume it's rather a PB problem than a Parallels problem as PowerBuilder does not officially support Windows on ARM processors.
  1. Helpful
  1. Gimmy Susan
  2. Monday, 12 August 2024 15:34 PM UTC
Hi Roland

I downloaded the version on the TOPWIZPROGRAMMING website.

The computers have M3 processor.

I attach error below.in main message

Thanks for your interest.

Gimmy
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 12 August 2024 16:52 PM UTC
Hi Arthur;

ARM & Motorola processor machines are *not* supported as the PB IDE & runtime can only run on Intel or Intel compliant (ie AMD) processor based machines.

Regards ... Chris
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Sunday, 11 August 2024 01:44 AM UTC
  2. PowerBuilder
  3. # 3

Hi, Gimmy -

This is a prime example of the risk one (i.e., your client) takes using an OS emulator instead of using the actual OS.

If this client is unable or unwilling to find/use a Windows emulator that is guaranteed to be 100% compliant or if the client is unwilling to run the (your) Windows application under a Windows operating system, then the only option I can envision would be to alter your application so that it can be optionally configured to split the currently combined and sequential actions into separate actions, where the user becomes the wait "mechanism", and has to wait for the first process to complete before manually invoking the second process.

The excellent and elegant TopWiz RunAndWait code developed by Roland Smith uses the proper, normal, standard Windows API calls for initiating the execution of a program and waiting for that program to complete. I know of no alternatives to using these WinAPI functions.

Best regards, John

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.