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

The LogDir property sets/returns the default log file directory for child APG scripts.

Syntax

VBScript:

oAPGen.LogDir [= strPath]

JScript:

oAPGen.LogDir [= strPath];

Object

oAPGen An APGen object.

Parameters

strPath The path of the default log file directory.

Notes

Child scripts (scripts run or opened by this APGen object) will use this value for Log.Dir.  This gives developers an easy way to change the log file location for multiple scripts.

The default value for the LogDir property is empty ("").  If LogDir is empty, then the default Log.Dir value for child scripts is the directory that contains the script.

Example

This VBScript line sets the log file directory to an "APGen" subdirectory of the Windows NT LogFiles directory.  IIS puts its log files in the directory "LogFiles\W3svc#".  This code allows you to keep all your log files together.  Note that the directory "LogFiles\APGen" must exist for logging to work after this line is executed.

oAPGen.LogDir = "C:\WinNT\System32\LogFiles\APGen"

Applies To

APGen Object