>Hi,
>
>Does any one know how I could progmatically save the Event Viewer on Windows NT 4.0 to a txt file (comman delimited) using a batch file or a script? The question is not exactly Foxpro related, but I am trying to added this feature to a foxpro program.
>
>Thanks,
>
>Jolene
Windows Management Instrumentation (WMI) has a provider for the NT Event Log. You could access it via scripting using the WSH or possibly via VFP itself (although I've seen problems reported here when accessing the COM objects directly using VFP). While it gives you access to NT Events, I don't know if it gives you the ability to export the log.
You can download the SDK at
http://msdn.microsoft.com/downloads/sdks/wmi/default.asp.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao