Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving NT Event Viewer using Foxpro
Message
 
 
À
11/08/2000 08:46:13
Jolene Dicks
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00403857
Message ID:
00403869
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform