|
Command Line Options
Using the command line options
enables to run Editor from a batch file (*.bat), Windows
shortcut, etc.
<filename>
If it is the only parametr that is supplied and it is a name
of a script file and the file exists, the file is open. It cannot
be used together with below parameters and switches.
-w<filename>
It opens the specified Workspace file when Editor is started.
It must be a Workspace that has been used before, so that the
Workspace file (*.ws) is already created by Editor. Only a name
of the Workspace is expected here, no path and no extension, in
the same way as it appears in the workspace-selection combo box.
If the workspace name contains spaces, enclose the parameter
to quotation marks.
-f<filename>
This opens the specified script file when Editor is started.
The fully qualified path is expected here; the name should
consist of the drive letter, path, file name and extension. No
wildcards allowed.
In case you specify long names (with a possible space
somewhere), enclose the parameter to quotation marks.
-r
This starts immediately a script execution. It has meaning only
when used together with -f parameter.
Remarks
When only -f
parameter is specified the Workspace Interim is created first. Then the file specified
with -f parameter is open.
When only -w parameter
is specified the specified Workspace is open including all the
open files. It works in quite the same way as if the user selects
the Workspace from the combo box.
When both -w and -f
parameters are specified then the specified Workspace is open
(all the settings of that Workspace will be used) first, but no
files. Then the file specified with -f parameter
will be open.
Examples
| ScriptEditor.exe -r "-fc:\Program Files\Some
Scripts\Default\SomeScript.vbs" |
This starts Editor, opens the file
SomeScript.vbs and executes the script.
| ScriptEditor.exe "-wMy
first workspace" "-fc:\My
Scripts\MyScript.vbs" |
This starts Editor, loads the
settings of the specified Workspace and opens the script
MyScript.vbs.
See Also
Options, Workspace Settings
|