Starting PB From the Command Line
\The Sandbox \PB History & Future \New in PB 3 \Command Line
Undocumented
Changes
Migration Issues
About Toolbars
Accelerator Keys
Assignment
Shortcuts
EditMask Object
Graphs
MAPI
Object Features
New & Modified
Functions
App Object
Attributes
New Data Types
New DataWindow
Features
New Events
Menu Painter
Features
PowerScript
Features
User Object
Event
Window Attributes
Preference
Options
Command Line
Transaction
Object
WATCOM SQL

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}

    Tip     win is required when you start PowerBuilder from the DOS command line.

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:

    win pb\pb030.exe /P w /L test.pbl /O 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:

    pb\pb030.exe /P dataw /L test.pbl /N

Enter this command in the Windows File Manager Run command box to start PowerBuilder, open the Application painter and build a new application:

    pb\pb030.exe /P a /N 

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com