摘要: Go to Site Actions > Site Settings (make sure you’re in the root site), and click “Search scopes”.Click “New Scope” to create a new scope to load in a... 阅读全文
posted @ 2015-02-03 09:09 batter152 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 自动关闭程序,每隔一秒会结束进程。把下面代码保存为vbs格式do set bag=getobject("winmgmts:\\.\root\cimv2") set pipe=bag.execquery("select * from win32_process where name='QQ.exe'"... 阅读全文
posted @ 2015-02-02 09:49 batter152 阅读(423) 评论(0) 推荐(0) 编辑
摘要: SharePoint是一个B/S结构的产品,所以在开发过程中会使用到各种各样的上下文(Context)信息,借此机会来总结一下。特别是Javascript的Ctx非常实用,这里记录一下!一、HttpContext这个……我想就不用再介绍了,SharePoint运行在标准的ASP.NET框架下(200... 阅读全文
posted @ 2015-02-02 09:46 batter152 阅读(188) 评论(0) 推荐(0) 编辑
摘要: # Using powershell code, update the user profile base on the XML file.# Date: 2015-01-29# Update New User Property$snapin = Get-PSSnapin | Where-... 阅读全文
posted @ 2015-01-30 09:00 batter152 阅读(246) 评论(0) 推荐(0) 编辑
摘要: protected void bt_SendMail_Click(object sender, EventArgs e) { string result = sendSalaryMail(); lbResult.Text = result; ... 阅读全文
posted @ 2015-01-30 09:00 batter152 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 在 SharePoint Server 2013 中备份 User Profile Service 应用程序摘要:了解如何备份 SharePoint 2013 中的 User Profile Service 服务应用程序。可使用 SharePoint 管理中心网站、Windows PowerShel... 阅读全文
posted @ 2015-01-29 09:25 batter152 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 对页面生成PDFpublic bool HtmlToPdf(string url, string path) { try { string filename = PdfFolder + "\\" + path... 阅读全文
posted @ 2015-01-28 09:25 batter152 阅读(232) 评论(0) 推荐(0) 编辑
摘要: public static string LogPath{ get { string path = string.Empty; path = Environment.GetFolderPath(Environment.SpecialFolder.CommonP... 阅读全文
posted @ 2015-01-27 09:17 batter152 阅读(167) 评论(0) 推荐(0) 编辑
摘要: #Write-Host "Loading SharePoint Powershell Snapin..." #Add-PSSnapin "Microsoft.SharePoint.Powershell" $spWeb = Get-SPWeb -Identity http://xxxxxxxx$... 阅读全文
posted @ 2015-01-26 10:16 batter152 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.文档名中不能包含以下特殊字符:+ ~ # ' % * ( ) = [ ] { } | \ " > . ? / @ &欧元符号tab字符和多重句号。2.单个文档的大小不超过最大上载大小3.不支持超过255个字符的文件和文件夹名称。4.考虑到安全性,文档库不支持以下扩展名的的文档的上传:.ade ... 阅读全文
posted @ 2015-01-23 13:58 batter152 阅读(347) 评论(0) 推荐(0) 编辑