0
Votes
Undo
  1. Aldo Amarilla
  2. PowerBuilder
  3. Tuesday, 11 May 2021 14:12 PM UTC
Hi, I am wanting to run a .bat with the RUN function, but not run the .bat in PB R3 version
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 11 May 2021 14:47 PM UTC
  2. PowerBuilder
  3. # 1

Take a look at the GetEnvironment function in the help.

In the Environment object you will find these properties:

PBMajorRevision - Will be 19 for PB2019.

PBMinorRevision - Will be 0 for PB2019 GA or R2, 2 for PB2019-R3.

 

Also interesting but not related to your question:

ProcessBitness - 32 for 32bit or 64 for 64bit.

 

And if you want to do a Run and wait for it to finish:

https://www.topwizprogramming.com/freecode_runandwait.html

 

Comment
  1. Aldo Amarilla
  2. Tuesday, 11 May 2021 18:34 PM UTC
Thank you Roland,

I was able to solve by implementing the example you gave me
  1. Helpful
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.