1. Arcady Abramov
  2. PowerBuilder
  3. Monday, 14 October 2019 14:08 PM UTC

Hello, all

Is it possible to do "get latest version" for pb170.exe from a command line?

I need to automate builds somehow and without being able to do "get latest" from the source control, it does not seem to be possible


Thank you


Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 14 October 2019 20:59 PM UTC
  2. PowerBuilder
  3. # Permalink

ORCAScript will work with any SCC API based source control provider that is compatible with the PB IDE. I'm not sure about the built in GIT/SVN introduced in PB 2017. I remember some people reporting problems with that.


  1. Michael Kramer
  2. Monday, 14 October 2019 21:49 PM UTC
You're right, Roland. ORCAScript is definitely using the legacy SCC based API. I haven't seen any changes that indicate it supports the new "native" source control interfaces.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 15 October 2019 18:57 PM UTC
Hi Roland / Michael;

From the PB2019 Help file ... "You can use "scc connect offline" to compile the source code managed by the SVN/Git source control system in PowerBuilder 2019; while you cannot use "scc connect" to connect with the SVN/Git server or get the source code from the server."

Have a look in the "ORCAScript with SVN/Git" section of the PB help for more information on SVN/Git considerations. Note that this section is also in the PB2017 help as well. HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 14 October 2019 20:12 PM UTC
  2. PowerBuilder
  3. # 1

use orcascript to connect to source control and refresh (GLV):

scc connect 

scc set target "yourtarget.pbt" "refresh_all"


then recompile either full or 3pass :


scc refresh target full


scc refresh target 3pass


scc close



There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Monday, 14 October 2019 14:36 PM UTC
  2. PowerBuilder
  3. # 2

Hi, solution is to use the ORCAScript feature. It automates both source control tasks and build/deploy tasks. It has existing for very many PB versions.

New with PB 2017 is the command-line compiler but that can only automate the build/deploy part.

First learning on ORCAScript: Language is PRIMIIVE. You will probably want a combination of PowerShell scripts and ORCAScripts to fully automate your tasks.

Enjoy, /Michael

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.