sharepoint项目部署
1.stsadm.exe -o deletesolution -name Test.wsp -override //强制删除解决方案
2.stsadm.exe -o addsolution -filename D:\Test\Bin\Test.wsp//安装wsp 将solution添加到sharepoint中
3.stsadm -o deploysolution -name Test.wsp -url http://localhost:1143 -allowgacdeployment -immediate //部署wsp 部署到solution中
stsadm.exe -o deploysolution -name Test.wsp -local 本地
4.stsadm -o activatefeature -filename Test_Feature1\feature.xml -url http://localhost:1143 -force//激活功能
例如,备份一个网站集的命令如下:
stsadm.exe -o backup -url http://contososrv/sites/backup -filename c:/back.dat
恢复一个网站集的命令如下:
stsadm.exe -o restore -url http://contososrv/sites/backup -filename c:/back.dat -overwrite
如果想要移除这个solution可以执行下面的命令 stsadm.exe -o retractsolution -name Luther10Solution.wsp –local
@echo off
cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>"
STSADM -o addsolution -filename "C:\Program Files\iwstech\CWS\Car\IWS.BDOA.CarManagement.wsp"
当stsadm没有添加到环境变量里的话要该命令 先进入命令所在路径 再执行命令
参考http://wenku.baidu.com/view/913ec222482fb4daa58d4b60.html
http://blog.csdn.net/xmttse/article/details/5866863
http://www.cnblogs.com/mikelij/archive/2010/12/07/1899573.html
http://technet.microsoft.com/zh-cn/magazine/2007.01.commandprompt.aspx
http://soft.zdnet.com.cn/software_zone/2007/1031/595672.shtml