<
All Elements
ELEMENT: <resource>
The
<resource>
tag can be used to isolate data within the script file. Data stored this way can only be retrieved via the
getResource
method.
Syntax:
<resource id="name">value</resource>
Attribute: id
The
id
attribute is used to give a unique identifier to the resource.
The following sample code illustrates the use of this tag.
<?XML version="1.0" ?>
<!-- Filename: demo.wsf-->
<package>
<job>
<resource id="weekday0">Sunday</resource>
<resource id="pi">3.14159265358979</resource>
<script language="VBScript">
WScript.Echo getResource("weekday0")
WScript.Echo getResource("pi")
</script>
</job>
</package>
Output:
Sunday
3.14159265358979
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information