Here's my take on the script.
Code:
@echo off
cls
title Eventing Command Line Utility: Cleanup Script
goto :question
:question
echo.
echo EMPTY ALL WINDOWS AND PROGRAM EVENT LOGS?
echo.
set /p ANSWER=(YES/NO):
if /i {"%ANSWER%"}=={"y"} (goto :start)
if /i {"%ANSWER%"}=={"yes"} (goto :start)
if /i {"%ANSWER%"}=={"n"} (goto :cancel)
if /i {"%ANSWER%"}=={"no"} (goto :cancel)
goto :input_error
:input_error
cls
echo.
echo *ERROR: Invalid Option
echo _________________________________________
goto :question
:start
for /f "tokens=*" %%G in ('wevtutil.exe el') do (call :clear "%%G")
goto :finish
:clear
echo Emptying %1
wevtutil.exe cl %1
goto :eof
:finish
cls
echo.
wevtutil.exe cl System
echo.
echo DONE. Press any key to exit.
pause>nul
goto :end
:cancel
cls
echo.
REM USER CANCELED, Quiting Silently...
goto :end
:end
title Command Prompt
cls
@echo off
goto :eof
:eof