APGen Documentation Previous Topic: Output.Unicode Next Topic: Output.Stream Parent Topic: Output Object    Output Object
Output.Logon
See Also:

The Output.Logon property returns a Logon object that sets the permissions used to create/open the output file.

Syntax

VBScript:

Output.Logon.property = sValue

JScript:

Output.Logon.property = sValue;

Objects

Output The Output object.
Logon A Logon object.

Notes

See the Logon object topic for the properties exposed by the Output.Logon object.

If the Logon.User property is empty (the default), no logon is attempted - the user account associated with the current thread is used to create the log file. 

The APGen.Logon object can be used to set the default user account used to create all log and output files.  Any APGen.Logon settings applied to the parent APGen object become the default settings for Output.Logon.

Example

This example uses the Output.Logon object to create the output file using a specific user account.

<%#
' Write to a network share using the apgen_user account.

Output.Filename = "//server1/wwwroot/default.htm"
Output.Logon.User = "apgen_user"
Output.Logon.Password = "password"
Output.Logon.Domain = "intranet_domain"

' Now generate the file's content
#%><html> . . .

Applies To

Output Object