Just For Me

博客园 首页 新随笔 联系 订阅 管理

2012年5月25日 #

摘要: 使用PowerShell批量注册DLL到GAC一段很小的代码,注册当前目录下所有的DLL到GAC,请先把gacutil.exe复制到同一个目录。$Path = Get-Location $Dir = Get-ChildItem "$Path" -Recurse $Dlls = $Dir | Where { $_.extension -eq ".dll" } $Dlls | ForEach-Object { .\gacutil.exe -i $_.name } 阅读全文
posted @ 2012-05-25 12:59 JunjieChang 阅读(482) 评论(0) 推荐(0) 编辑

摘要: 让代码看起来更舒服, 修改VS颜色样式这个blog转载多余原创,越来越忙,代码写的越来越多,眼睛也越来越不舒服,看到了Windie Chai的VS的样式,强烈要求他分享,于是得到了下面两个blog,让代码看起来更舒服http://coding.windstyle.cn/2009/11/19/make-your-code-more-comfortable-1-choose-the-right-color-scheme/http://coding.windstyle.cn/2009/11/22/make-your-code-more-comfortable-2-select-the-appropr 阅读全文
posted @ 2012-05-25 12:58 JunjieChang 阅读(464) 评论(0) 推荐(0) 编辑

摘要: 最近做一些脚本自动化的事情,发现一个很有意思的东西,如下,如果用户账户包含了$符号,就会抛出一个“User cannot be found”的异常。New-SPSite $CommunityUrl -OwnerAlias "ASIAPACIFIC`\$ExSquareDEV001" -Name "$CommunityName" -Template "STS#0" -ContentDatabase $CommunityDatabase New-SPSite : User cannot be found.上MSDN搜索了一下,发现了一篇文 阅读全文
posted @ 2012-05-25 12:51 JunjieChang 阅读(1854) 评论(0) 推荐(0) 编辑