@echo off

REM Prepare for release
REM Usage release.bat <destination-path>

REM There must be a destination path or else fail it.
if "%1" == "" goto :Error

REM Copy all sub-directories excluding empty ones, quiet mode, destination may be directory
REM yes to overwrite all
xcopy . %1 /s /i /y /q

REM delete unwanted, temp and internal files including svn files
del %1\adc10_basic\scripts

goto Done

:Error
@echo Please specify destination path on command-line

:Done