|
ScriptArguments Object |
|
See Also: |
The Arguments.Add() method adds an item to the collection.
VBScript:
JScript:
| oArguments | A ScriptArguments object. |
| value | A VARIANT value to add to the collection of arguments. |
The new item is added to the end of the array of arguments, and ScriptArguments.Count is incremented.
This code snippet adds two arguments when running an APGScript. Note that it would be easier to call APGScript.RunArgs() and pass in the two arguments.
<%#
Dim oScript
Set oScript = APGen.OpenScript("SrcToHtml.apg")
' Add two arguments
oScript.Arguments.Add "c:\inetpub\wwwroot\default.asp"
oScript.Arguments.Add "c:\inetpub\wwwroot\default_asp_src.htm"
' Run the script
oScript.Run
#%>