|
APGen Object |
|
See Also: |
The OutputDir property sets/returns the default output directory for child APG scripts.
VBScript:
JScript:
| oAPGen | An APGen object. |
| strPath | The path of the default output directory. |
Child APGScript objects (scripts run or opened by this APGen object) will start using this value for Output.Dir. This gives developers an easy way to set the output location for multiple scripts.
The default value for the OutputDir property is empty (""). If APGen.OutputDir is empty, then the default Output.Dir value for child scripts is the directory that contains the script.
This VBScript example script runs several other APG scripts. All output is written to a directory named "drop".
Dim oAPGen
Set oAPGen = Script.CreateObject("APGen")
' Set the output directory
oAPGen.OutputDir = "..\drop"
' Run some APG scripts
oAPGen.Run "page1.apg"
oAPGen.Run "page2.apg"
oAPGen.RunArgs "TOC.apg", "page1.apg", "page2.apg"
...