|
You can start PowerBuilder from the DOS command line or the File Manager and open a library or one of the following painters (or the DOS editor) with or without an object displayed:
Application Menu
Database Query
DataWindow Report
Debug Structure
Function User Object
Library Window
To do so, use the following syntax:
{win} directory\pb030.exe { /P paintername} { /L libraryname} { /O objectname }{ /N}
|
Parameter
|
Description
|
|
directory
|
The fully qualified name of the directory containing PowerBuilder
|
|
paintername
|
The name of the painter you want to open. The default is the window that displays when you begin a new PowerBuilder session. To open the DOS editor, set paintername to DO or DOSEditor.
Tip The painter name must uniquely identify the painter, you do not have to enter the entire name. For example, you can enter w to open the Window painter and dataw to open the DataWindow painter. If you enter the full name, omit any spaces in the name (enter UserObject and DOSEdit).
|
|
libraryname
|
The name of the library you want to open. The default is the library specified in the application variable DefLib in PB.INI.
|
|
objectname
|
The name of the object you want to open. You cannot specify both /O and /N. The default is initial painter window (usually the select window) unless you specify /N. When you specify /N without /O PowerBuilder opens a new (untitled) object in the selected painter.
|
Tip You can enter the switches in any order, but you cannot specify /O or /N without specifying /P and you cannot specify both /O and /N.
Example
Enter this command at the DOS command line to start PowerBuilder, open the Window painter, the library test.pbl, and the object win_emp:
Enter this command in the Windows File Manager Run command box to start PowerBuilder, open the DataWindow painter, the library test.pbl, and build a new window:
Enter this command in the Windows File Manager Run command box to start PowerBuilder, open the Application painter and build a new application:
|