[Dev-C++] Res: Clear/Delete a file that it is been used by services.exe
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: KrowniX \(\)--\(\) <kr...@ya...> - 2006-12-06 13:03:52
|
Well, I have to remove becouse in the company that I work that=B4s the stan= dart action to this situation, and don=B4t matter how much I talk with them= they won=B4t change ...so I have to remove the old records in the event vi= ewer=0A=0AI also think like you..and I don=B4t see any reason of why we sho= uld erase the records in the event viewer once all that is really important= it=B4s save in a backup directoy.=0A=0ABut...I was looking here..and unfor= tunely I think that it isn=B4t possible to do this using c/c++...but I will= try to do it using vbscript, but beeing honest with you I don=B4t think th= at will work....:(=0A=0A=0A----- Mensagem original ----=0ADe: Per Westerma= rk <pw...@ia...>=0APara: KrowniX ()--() <kr...@ya...>=0AC= c: dev...@li...=0AEnviadas: Quarta-feira, 6 de Dezem= bro de 2006 10:06:20=0AAssunto: Re: [Dev-C++] Clear/Delete a file that it i= s been used by services.exe=0A=0A=0AMost importantly - why do you want to d= o it?=0A=0AAre they containing sensitive information that you want to remov= e, or is=0Ait just that you want to keep older logs available?=0A=0AMost so= lutions for logging is to browse the event logs and extract all new=0Aentri= es to secondary files. By keeping track of last entry copied, there=0Ais th= en no need to remove old entries.=0A=0A/Per W=0A=0AOn Wed, 6 Dec 2006, Krow= niX ()--() wrote:=0A=0A> Hi,=0A>=0A> Friends..I got a problem here...=0A> I= have to do a robot that do the backup of the .evt files (c:\winnt\system32= \config\*.evt) and after the backup is finished I need to delete those file= s.=0A>=0A> Well...the first thing is easy...just copy the files...and compr= ess then,, but, how do I delete a .evt file if it=B4s been used by the Even= t Viewer and the Event Viewer it is been executed on services.exe and Windo= ws NT doesn=B4t allow me to make operations with it.=0A>=0A> Anyone knows .= ..some API...or have some idea about how do I solve this problem??=0A>=0A> = Krownix=0A>=0A>=0A>=0A> ___________________________________________________= ____=0A> Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu = celular. Registre seu aparelho agora!=0A> http://br.mobile.yahoo.com/mailal= ertas/=0A>=0A>=0A=0A=0A=09=09=0A___________________________________________= ____________ =0ANovidade no Yahoo! Mail: receba alertas de novas mensagens = no seu celular. Registre seu aparelho agora! =0Ahttp://br.mobile.yahoo.com/= mailalertas/ =0A =0A |