windows-nt/Source/XPSP1/NT/multimedia/danim/bckupsrc.bat
2020-09-26 16:20:57 +08:00

35 lines
428 B
Batchfile

@echo off
REM backs up the last built src files
REM
REM
cd %AP_ROOT%
call setenvus.bat
echo.
echo Backing up the src directory for build %BUILDNO%
echo.
if exist oldsrc goto copy
md oldsrc
:copy
cd oldsrc
if exist %BUILDNO% goto error
md %BUILDNO%
cd ..
xcopy /e /v /i /h /q src %AP_ROOT%\oldsrc\%BUILDNO% /s
echo.
echo Backup completed...
goto end
:error
echo.
echo Directory %BUILDNO% already exists
echo.
echo.
:end