New
#10
Someone seems to know code better than I do.
Seems to work (I say that because I don't understand the code)
Let's say you don't want to have to press exit key every time. We can modify this way
Code:@echo off FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V IF (%adminTest%)==(Access) goto noAdmin for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G") echo. echo goto theEnd :do_clear echo clearing %1 wevtutil.exe cl %1 goto :eof :noAdmin exit
Download
Nice. I'll try it a while and check. :)
Last edited by Zardoc; 27 Oct 2009 at 11:11.