MOSS 2007 部署Feature脚本

REM – Remember to remove line breaks from first two lines
@SET TEMPLATEDIR="%programfiles%/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE"
@SET STSADM="%programfiles%/Common Files/Microsoft Shared/web server extensions/12/BIN/STSADM.EXE"


Echo Copying files
xcopy /e /y TEMPLATE/* %TEMPLATEDIR%

Echo Installing feature
%STSADM% -o InstallFeature -filename HelloWorld/feature.xml -force

Echo Restart IIS Worker Process
IISRESET

pause

posted @ 2009-03-12 13:57  深潭  阅读(123)  评论(0编辑  收藏  举报