|
LogEvent Method |
|
Description
Adds an event entry to a log file.
PowerBASIC Syntax
Arguments
Remarks
The LogEvent method returns a Boolean value (true if the event is logged successfully, otherwise false). In Windows NT/2000, events are logged in the Windows NT Event Log. In Windows 9x/Me, events are logged in WSH.log (located in the Windows directory). There are six event types.
Example [PowerBASIC]
#INCLUDE "WSHOM.INC"
DIM pWsh AS IWshShell2 DIM vType AS VARIANT
vType = 0 AS LONG pWsh = NEWCOM "WScript.Shell" pWsh.LogEvent vType, UCODE$("Logon Script Completed Successfully")
|
