1. 查看SharePoint进程
@setlocal
@pushd.
@set path=%path%;c:\program files\common files\microsoft shared\web server extensions\14\bin
@cd /d %~dp0
spmetal.exe /web:http://spdbserver:84 /namespace:ShUniversity.Linq /code:D:\SPLinq.cs
@popd
@endlocal
@pause
2. 生成Linq to SharePoint List 命令
@setlocal
@pushd.
@set path=%path%;%windir%\system32\inetsrv
@cd /d %~dp0
appcmd.exe list wp
@popd
@endlocal
@pause
3. 复制 文件
xcopy D:\Images\* E:\Images\. /Y xcopy D:\Xmls\* E:\Data\. /Y
4. 以其他用户的身份来打开CMD ,下面是管理员
runas /user:administrator cmd
5. 添加DLL 到GAC
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil" -i xxx.dll 卸载:"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil" /u "hello,Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789ABCDEF"