RPC - Command Line
Command Line |
The following parameters can be used to run the application from the command line. Some examples are available here.
HELP
| -?, -H, -HELP Displays the list of commands available. |
CONNECT
| -CONNECT(<server>[,<username>[,<password>[,<KBname>]]]) This option enables you to connect to the CAST Knowledge Base without using a Knowledge Base Connection Profile.
Notes
|
CONNECT_PROFILE
| -CONNECT_PROFILE( |
DATABASE
| -DATABASE(<database_type>) Use this option to specify the type of Central Site you want to connect to:
Notes
|
LOG
-LOG(<filename>,[<arguments>],[<maxlines>]) Initializes the log file.
Examples: RCENTER.EXE -LOG(c:\log.castlog, -USELOGFILE) Notes
|
NOBEEP
-NOBEEP Execute without sound. |
SHOW
Notes
|
EXIT
| Use this option at the end of your command line - it will automatically close Report Center on completion of the other options you have defined. You can also use it in some circumstances to force Report Cengter not to display any dialog boxes during the command line process (i.e. by using it at the beginning of the command line, immediately after calling the .exe). |
HREPORT
| -HREPORT(<Requestfilename>[,<Targetfilename>[,<Stylefilename>[,<arguments> [,<ExternalValues>]]]]) This option creates a report from the Knowledge Base in HTML format.
Examples:
|
HDIAGNOSTIC
| -HDIAGNOSTIC( |
HREPORTLIST
| -HREPORTLIST(<Requestfilename>) This command enables you to execute one or more reports from one command line.
The file can be called anything and can be any type (.TXT for example). Specify the list of reports you want executing in the normal manner: -HREPORT(c:\work\t.hsq,f:\work\t\t.htm) Example: "c:\program files\CAST\SQL Server\rcenter.exe"-CONNECT_PROFILE(BERTIE)-LOG(d:\cast\log.castlog, -USELOGFILE)-HREPORTLIST(c:\report.txt)-EXIT |
Examples
"c:\program files\CAST\SQL Server\rcenter.exe"-CONNECT_PROFILE(BERTIE)-LOG(d:\cast\log.castlog, -USELOGFILE)-HREPORT(c:\AllTableInfo.hsq,c:\out.htm,c:\cwstyles.css)-EXIT |
Notes
Please make sure you use uppercase letters to input the command line parameters (as in -LOG, -EXIT). The procedure will fail otherwise.
