APGen Documentation Previous Topic: APGen.Version Next Topic: APGen.LogDir Parent Topic: APGen Object    APGen Object
APGen.OutputDir
See Also:

The OutputDir property sets/returns the default output directory for child APG scripts.

Syntax

VBScript:

oAPGen.OutputDir [= strPath]

JScript:

oAPGen.OutputDir [= strPath];

Object

oAPGen An APGen object.

Parameters

strPath The path of the default output directory.

Notes

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.

Example

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"
...

Applies To

APGen Object