Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving NT Event Viewer using Foxpro
Message
 
 
To
11/08/2000 08:46:13
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00403857
Message ID:
00403869
Views:
13
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform