Using command line arguments
You can start PowerBuilder from a command line (or the Windows
Run dialog box) and optionally open a workspace, target, and/or
painter. These are the painters and tools you can open:
-
Application painter
-
Database painter
-
Data Pipeline painter
-
DataWindow painter
-
Debugger
-
File Editor
-
Function painter
-
Library painter
-
Menu painter
-
Query painter
-
Structure painter
-
User Object painter
-
Window painter
The syntax is:
|
1 |
directorypb180.exe {/workspace workspacepath} {/target targetpath} {/painter paintername} {/output outputpath} |
where directory is the fully qualified name of the directory
containing PowerBuilder.
You can also add one or more of the following options to the
command line after /painter paintername to open a specific object or
create a new one:
|
1 |
{/library libraryname} {/object objectname} {/inherit objectname} {/new} {/run} {/runonly} {/argument arguments} |
The syntax statements show the long form of option names. You
need only use the initial letter or letters of the option name as long
as the option is uniquely identified, as shown in the following
table.
|
Option |
Description |
|---|---|
|
/W workspacepath |
Opens the workspace workspacepath. The default is |
|
/T targetpath |
Opens the target targetpath. |
|
/P paintername |
Opens the painter paintername. The default is the The painter name must uniquely identify The painter name is not case sensitive. Except for the /W, /T, and /L |
|
/OU outputpath |
Logs the contents of the Output window to |
|
/L libraryname |
Identifies the library that contains the object |
|
/O objectname |
Identifies the object, such as a DataWindow |
|
/I objectname |
Identifies the object you want to inherit |
|
/N |
Creates a new DataWindow object. |
|
/R |
Runs the DataWindow object specified with /O and |
|
/RO |
Runs the DataWindow object specified with /O but |
|
/A arguments |
Provides arguments for the specified DataWindow |
Examples
The following examples assume that the location of the
PowerBuilder executable file is in your system path.
This example starts a PowerBuilder session by opening the Window
painter in the Client PBL in the Math workspace. The output of the
session is sent to a file called math.log. The workspace file, the
PBL, and the log file are all in the current directory:
|
1 |
pb180 /w Math.pbw /l Client.pbl /p window /out math.log |
Enter this command to start PowerBuilder and open the DataWindow
object called d_emp_report in the workspace Emp.pbw:
|
1 |
pb180 /w D:pbwsEmp.pbw /P dataw /O d_emp_report |
Building from the command line
You can also build and deploy a workspace from the command
line. For more information, see Building
workspaces.