VS 2003下ASP.NETプログラムが手動で発行するバッチ

1766 ワード



@echo off
echo - Copying Web Files ...
echo.
set var=%cd%
:loop
set var=%var:*\=%
set num=%var:\=%
if not "%var%"=="%num%" (goto loop)
if "%var%"=="=" (goto noproject)
echo - Buildding Project %var%
echo.
echo - 01.Copying ICO....&&xcopy *.ico  ..\builds\%var%\ /s /y /q 2>nul
echo - 02.Copying CUR....&&xcopy *.cur  ..\builds\%var%\ /s /y /q 2>nul
echo - 03.Copying PNG....&&xcopy *.png  ..\builds\%var%\ /s /y /q 2>nul
echo - 04.Copying JPG....&&xcopy *.jpg  ..\builds\%var%\ /s /y /q 2>nul
echo - 05.Copying GIF....&&xcopy *.gif  ..\builds\%var%\ /s /y /q 2>nul
echo - 06.Copying TXT....&&xcopy *.txt  ..\builds\%var%\ /s /y /q 2>nul
echo - 07.Copying ASPX...&&xcopy *.aspx ..\builds\%var%\ /s /y /q 2>nul
echo - 08.Copying HTM*...&&xcopy *.htm* ..\builds\%var%\ /s /y /q 2>nul
echo - 09.Copying XML....&&xcopy *.xml  ..\builds\%var%\ /s /y /q 2>nul
echo - 10.Copying CSS....&&xcopy *.css  ..\builds\%var%\ /s /y /q 2>nul
echo - 11.Copying JS.....&&xcopy *.js   ..\builds\%var%\ /s /y /q 2>nul
echo - 12.Copying HTC....&&xcopy *.htc  ..\builds\%var%\ /s /y /q 2>nul
echo - 13.Copying DLL....&&xcopy *.dll  ..\builds\%var%\ /s /y /q 2>nul
rem xcopy *.config ..\builds\%var%\ /s /y /q 2>nul
echo.
echo - Copy Files Finshed!
echo.
pause
goto exit
:noproject
echo.
echo - Sorry! No Project To Copy!
echo.
pause
:exit
rem     :     public.bat     ,    public.bat