DooIT@江西搜才网

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  51 随笔 :: 17 文章 :: 1151 评论 :: 28 引用

公告


@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

posted on 2007-09-30 12:17 ttyp 阅读(...) 评论(...) 编辑 收藏