del /S /Q Library

rmdir /Q Library\Debug_ExtLibs
rmdir /Q Library\Debug_KeosEngine
rmdir /Q Library\Debug_RenderSystemOpenGL
rmdir /Q Library\Debug_RenderSystemDirect3D9
rmdir /Q Library\Debug_PlatformManagerWin32
rmdir /Q Library\Release_ExtLibs
rmdir /Q Library\Release_KeosEngine
rmdir /Q Library\Release_RenderSystemOpenGL
rmdir /Q Library\Release_RenderSystemDirect3D9
rmdir /Q Library\Release_PlatformManagerWin32

del /Q Samples\RotateCube\Debug\*.*
del /Q Samples\ModelLoader\Debug\*.*
del /Q Samples\Transparency\Debug\*.*
del /Q Samples\TextureMapping\Debug\*.*
del /Q Samples\CgShaders\Debug\*.*
del /Q Samples\RotateCube\Release\*.*
del /Q Samples\ModelLoader\Release\*.*
del /Q Samples\Transparency\Release\*.*
del /Q Samples\TextureMapping\Release\*.*
del /Q Samples\CgShaders\Release\*.*

del /Q .\*.ncb
del /Q /A:H .\*.suo

del /Q Samples\Bin\*.dll
del /Q Samples\Bin\*.exe
del /Q Samples\Bin\*.ilk
del /Q Samples\Bin\*.log

copy ExtLibs\DevIL\DevIL.dll Samples\bin\DevIL.dll
copy ExtLibs\Cg\*.dll Samples\bin


echo Fini




