Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
462 B

@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