- @echo off
- for /f "delims=" %%a in ('dir /b /ad "D:\web"') do (
- rem 清空website目录
- rd D:\web\%%a\website /s/q
- rem 新建website目录
- md D:\web\%%a\website
- rem 复制wwwroot到website中
- xcopy D:\web\%%a\wwwroot D:\web\%%a\website /s/e
- rem 打包website并在完成后删除website
- "c:\Program Files\WinRAR\WinRAR.exe" a -df -as -r -EP1 D:\web\%%a\website D:\web\%%a\website
- )
复制代码
|