Table of Contents


Ispirer Website Ispirer Capabilities - PowerBuilder Conversion Free Trial

PowerBuilder 8.x-12.x - Extracting Source from PBT Files

In order to perform the conversion of the PowerBuilder application first you need to extract the script files of which each PowerBuilder Target (PBT) file consist. These are the files containing the definition of each object used in the application. There is two ways to do this task using tool developed by our team or do it manually from PowerBuilder. One more benefit of using PBExtractor is collecting information about lines of code for each type of file and total amount of this files. All information is saved into “total_information.log”.

Download PBExtractor

NOTE: If you are planning to use SQLWays tool for migration of extracted PowerBuilder files, ensure that it saves them in one of the following encodings:

Extracting Source from PBT Files Using Tool

Using PBExtractor

  1. Run PBExtractor
  2. Specify the path to PBL or LST file in the first text box “Path to PBL or LST file:”*. The existing pbt or lst file should be specified.
  3. Specify the folder where the extracted files should be placed in the second text box “Folder for extracted files :”. The Path should end with “\” and the existing directory should be specified.
  4. Press the “Extract…” button.

Extracting Source from PBT Files Manually

For this purpose please go to the “Tools” menu and run the “Library Painter” as it is specified in the screen-shot below:

In the opened “Library Painter” window please browse to one of the pbt files from your PowerBuilder project, select all the objects in the left-hand pane, click the right mouse button on the selected objects and choose “Export” in the menu, like in the picture below:

After that you will be prompted to specify the location of each object exported, which definition will be stored in its own file (SRD, SRU, SRW, SRF & etc.) in the specified location.

The same set of actions needed to be performed for each PBT file in the project to acquire the definitions of all the objects in the project.