Defines objects in Windows Script (.wsf) files that can be referenced by a script.
<object id="objID" [classid="clsid:GUID" | progid="progID"] />
The <object> element provides a way to expose objects globally for use in scripting within the Windows Script file without using functions such as CreateObject(). Using an <object> element makes the object available with global scope and enables scripting tools to provide statement completion for the object's members.
You must specify either a classid or a progid.
<job>
<obect id="fso" progid="Scripting.FileSystemObject"/>
<script language="Jscript">
var a = fso.CreateTextFile("c:\\testfile.txt", true);
a.WriteLine("This is a test.");
a.Close();
</script>
</job>
<runtime> Element | <named> Element | <description> Element | <example> Element | <package> Element