@ECHO OFF

ECHO CleanUp.BAT:         Deleting output

REM ****************************************
REM   Delete working folders
REM ****************************************

IF "%OS%" == "Windows_NT" GOTO WinNT
FOR %%i IN (Output, Source, Debug, Release) DO DELTREE %%i
GOTO CONT2
:WinNT
FOR %%i IN (Output, Source, Debug, Release) DO IF EXIST %%i RD %%i /S/Q
:CONT2

REM ****************************************
REM   Delete files
REM ****************************************

ATTRIB -H *.suo>>NUL
FOR %%i IN (OPT, PLG, APS, NCB, SDF, SUO, USER) DO IF EXIST *.%%i DEL *.%%i
