Canvas supports a command-line interface to open the application or to open a specific screen from either a CygNet BSS folder or a local folder.
Canvas -Source=[BSS|Local] -Path=[Canvas screen file path]
Note: Command-line commands are not case sensitive.
Some parameters require additional data, if required, follow each parameter with =additional data. See Usage and Examples for more information.
| Parameter | Required | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
-Source |
No |
Specify the source type for the file you want to open. Options include:
The -Source parameter is optional, and if not specified, the -Source is assumed to be local. Examples
|
|||||||||
|
-Path |
Yes |
Specify the path to the file you want to open wrapped in quotation marks. Options include a valid CygNet APPS or BSS folder path or a valid local or network Windows file-system folder path. The -Path parameter is required when opening a screen. The -Path parameter can be used without the -Source parameter. If no -Source parameter is specified, it is assumed to be local. Note: Do not use -Files to specify the path to a file. The presence of both -Files and -Path invalidates a command line. The -Files parameter is used with Find and Replace. Examples
|
|||||||||
|
-Help |
No |
Displays a dialog box showing command-line usage. "help", "\help", "/help", and "?" are also valid. The Command Line Usage dialog box will be displayed when any invalid options are typed at the command line. Examples
|
You can get user assistance for the relevant command-line options for Canvas.
|
Type |
|
C:\CygNet\Bin>Canvas |
|
C:\CygNet\Bin>Canvas help |
|
C:\CygNet\Bin>Canvas MyChart.can |
|
C:\CygNet\Bin>Canvas -Source=BSS -Path="CYGDEMO.BSS\Screens\MyChart.can" |
|
C:\CygNet\Bin>Canvas -Source=Local -Path="D:\Screens\MyChart.can" |
Note: The Canvas Find and Replace command-line parameters cannot be combined with parameters describe above. See that topic for more information about using the command line to search and replace strings in your Canvas screen .xml files.