[Dev-C++] Res: 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 16:01:15
|
Thank you....you really help me to solve my problem...=0A=0AAnd I don=B4t k= now what I was thinking about when I said that I can not do it using C/C++;= ;; sorry=0A=0AThank you one more time....=0A=0AKrownix=0A=0A=0A----- Mensag= em original ----=0ADe: Per Westermark <pw...@ia...>=0APara: Krowni= X ()--() <kr...@ya...>=0ACc: dev...@li...= =0AEnviadas: Quarta-feira, 6 de Dezembro de 2006 11:29:09=0AAssunto: Re: Re= s: [Dev-C++] Clear/Delete a file that it is been used by services.exe=0A=0A= =0AMost operating systems are written in C or C++, so if something is=0Apos= sible to do in any language, it is most probably also possible using C=0Aor= C++.=0A=0AThe API you are interested in is called ClearEventLog().=0A=0AGo= ogle should be able to supply the required information about how to use=0Ai= t.=0A=0AThere is also the function BackupEventLog().=0A=0A/Per W=0A=0AOn We= d, 6 Dec 2006, KrowniX ()--() wrote:=0A=0A> Well, I have to remove becouse = in the company that I work that=B4s the standart action to this situation, = and don=B4t matter how much I talk with them they won=B4t change ...so I ha= ve to remove the old records in the event viewer=0A>=0A> I also think like = you..and I don=B4t see any reason of why we should erase the records in the= event viewer once all that is really important it=B4s save in a backup dir= ectoy.=0A>=0A> But...I was looking here..and unfortunely I think that it is= n=B4t possible to do this using c/c++...but I will try to do it using vbscr= ipt, but beeing honest with you I don=B4t think that will work....:(=0A>= =0A>=0A> ----- Mensagem original ----=0A> De: Per Westermark <pwm@iapetus.n= eab.net>=0A> Para: KrowniX ()--() <kr...@ya...>=0A> Cc: dev-cpp-us= er...@li...=0A> Enviadas: Quarta-feira, 6 de Dezembro de 2006= 10:06:20=0A> Assunto: Re: [Dev-C++] Clear/Delete a file that it is been us= ed by services.exe=0A>=0A>=0A> Most importantly - why do you want to do it?= =0A>=0A> Are they containing sensitive information that you want to remove,= or is=0A> it just that you want to keep older logs available?=0A>=0A> Most= solutions for logging is to browse the event logs and extract all new=0A> = entries to secondary files. By keeping track of last entry copied, there=0A= > is then no need to remove old entries.=0A>=0A> /Per W=0A>=0A> On Wed, 6 D= ec 2006, KrowniX ()--() wrote:=0A>=0A> > Hi,=0A> >=0A> > Friends..I got a p= roblem here...=0A> > I have to do a robot that do the backup of the .evt fi= les (c:\winnt\system32\config\*.evt) and after the backup is finished I nee= d to delete those files.=0A> >=0A> > Well...the first thing is easy...just = copy the files...and compress then,, but, how do I delete a .evt file if it= =B4s been used by the Event Viewer and the Event Viewer it is been executed= on services.exe and Windows 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! Mai= l: receba alertas de novas mensagens no seu celular. Registre seu aparelho = agora!=0A> > http://br.mobile.yahoo.com/mailalertas/=0A> >=0A> >=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/mailalertas/=0A>=0A>=0A= =0A=0A=09=0A=0A=0A=0A=09=0A=09=09=0A_______________________________________= ________________ =0AVoc=EA quer respostas para suas perguntas? Ou voc=EA sa= be muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respost= as !=0Ahttp://br.answers.yahoo.com/ |