|
New Project Wizard
Comment to project
This adds a text enclosed to the
<comment> element and nested into the <package>.
Therefore, it is a comment to the whole project (*.wsf file)
rather than to one of the jobs in it. This text has no impact on
the project execution.
Job name
The content of the project file
(*.wsf) can be splitted into more tasks, jobs. Each job is
enclosed to the <job> element. In order it is possible to
select one or more jobs to run they should have unique names. The
job name can be specified on the command line for WScript.exe or
CScript.exe. Therefore, it is recommended to keep the job names
short, descriptive and without spaces.
The comment is a text enclosed to
the <comment> element and nested into the <job>.
Therefore, it is a comment to the job rather than to the whole
project file (*.wsf). This text has no impact on the project
execution.
Version info
This option adds <resource>
element containing a short version string. If the checkbox Display
version info when /ver parameter is used is checked a code
snippet is added as an embedded script.
Author info
This option adds <resource>
element containing a multi-line text describing the author of the
script. If the checkbox Display author info when /author
parameter is used is checked a code snippet is added as an
embedded script.
Check params
If either of the checkboxes is
checked, or any mandatory parameter is listed, the
<runtime> element is added with all the relevant
sub-elements. If the checkbox Display usage info when project
started with no parameters is checked a code snippet is
added as an embedded script.
If there are any optional parameters they should not be listed
here. Edit the <runtime> element later to add them.
Check host
If either Only by WScript.exe or
Only by CScript.exe is checked a code snippet is added
as an embedded script. This way it is possible to ensure that the
project will be executed only by the host for which it was
developped.
Create objects
The <object> element will be
added for each checked object in the list. It is advisable to
create all the objects that should be available globally through
all the following embedded scripts. This will simplify the
scripts as it is not necessary to declare variables for the
objects and create them with functions like CreateObject(). The list shows objects that are listed as Used
Objects for the current Workspace, but it is possible to add any
other object as well.
Use libraries
The <script> element will be
added for each checked file in the list. It references the script
by the file name with a path relative to the default folder of
the current Workspace. Therefore, these scripts are handled as
external scripts and don't become a part of the created project
file (*.wsf).
Main script
This option adds <script>
element at the very bottom of the <job> element. It creates
the main embedded script that is supposed to reference the other
embedded scripts (the script code specific to the project) or
external scripts (libraries).
Remark: The code snippets added by
the Wizard are in VBScript. It doesn't matter that you may wish
to write the project code in another language because WSF enables
to freely mix languages and you won't probably need to edit the
snippets.
See Also
User Interface,
Working with Project Tree
|