Stop Perfmon.exe from within a Delphi Application
From: .mitro (tro_at_adv.magwien.gv.at)
Date: 12/22/03
- Next message: Mickey Feldman: "Re: apostrophe"
- Previous message: Henry Bartlett: "Re: Get ID-Tags of MP3s"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 22 Dec 2003 10:48:18 +0100
Hi there.
I am currently writing an application for my company. This application has
to find out how many poeple logon to our domain (per hour). In order to get
any information I use Windows' PerformanceMonitor (perfmon.exe) on every
domain controller. Perfmon writes the number of logins since the last boot
into a logfile once in an hour.
What my program does, is copying these logfiles to the local machine
(works), reads and evaluates it's contents (works), writes a seperate local
logfile (works) and deletes the local perfmon-files (works).
The perfmon-logfiles are growing (by 24 lines a day) which will be a problem
sooner or later, since it takes longer everytime to copy the files. My major
problem: I cannot delete the logfiles on the domain controllers since they
are locked by Windows as long as they are active. And I DO NOT want to
delete the files manually every now and then.
So here is my question: Does anyone know how to tell perfmon to stop logging
(so I can delete the files and create new ones)? It does not accept any
parameters (as far as I know), so I guess there must be something in the API
... ?
Any suggestions would be greatly appreciated, thanks an advance & a merry
christmas (once again)
.mitro
- Next message: Mickey Feldman: "Re: apostrophe"
- Previous message: Henry Bartlett: "Re: Get ID-Tags of MP3s"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|