@ECHO OFF :START ECHO. ECHO *********************************************************************** ECHO. ECHO TRACEKILL will first stop the tracing process that keeps the trace.log ECHO file from being deleted. Then it will delete the trace.log file. ECHO M.Devlin, 2004 - www.mike-devlin.com ECHO. ECHO *********************************************************************** ECHO. PAUSE ECHO Stopping the tracing process . . . ECHO. ECHO. START /w C:\PROGRA~1\RESOUR~1\TRACELOG -stop ECHO. ECHO Tracing process stopped . . . ECHO. PAUSE ECHO. ECHO. ECHO . . . checking for the trace.log file. ECHO. DEL C:\WINDOWS\system32\LogFiles\WMI\trace.log /P ECHO. PAUSE CHOICE /C:12 /T:2,9 To EXIT this program choose 2. [Enter 1 to re-start it] IF ERRORLEVEL==2 GOTO ACHOICETWO IF ERRORLEVEL==1 GOTO ACHOICEONE :ACHOICEONE GOTO START :ACHOICETWO ECHO GOOD-BYE! GOTO ENDA :ENDA