Using command line arguments
You can log in PowerBuilder from a command line (or the Windows
Run dialog box) if you have an online license for PowerBuilder.
The syntax is:
|
1 |
directorypb190.exe {/AC useraccount} {/PW password} {/RC value} {/ALS value} {/SOE value} |
or
|
1 |
directorypb190.exe {/LIF loginfile} |
where directory is the fully qualified name of the directory
containing PowerBuilder.
For example,
|
1 |
pb190 /AC test@appeon.com /PW xxxxxxx /RC N /ALS N /SOE Y |
or
|
1 |
pb190 /LIF c: est.ini |
|
Option |
Description |
|---|---|
|
/AC |
User Account. |
|
/PW |
User Password. |
|
/RC |
Remember Credentials (Y or N), default is Y. /RC is always Y when /ALS is Y. Therefore, the /RC value will be ignored, if /ALS is set to Y. This parameter takes effect only when both /AC and /PW are set. |
|
/ALS |
Auto Login at Startup (Y or N), default is Y. |
|
/SOE |
Sign Out on Exit (Y or N), default is Y. This |
|
/LIF |
The full path to the license login initialization |
You can also start PowerBuilder from a command line 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 |
directorypb190.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 |
pb190 /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 |
pb190 /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.