摘要: 今天在用start-process这个cmdlet去新开一个窗口执行powershell的时候遇到的一个问题看一下测试代码:以下这个ps代码命名为profile.ps1,并且保存在%UserProfile%\My Documents\WindowsPowerShell这个目录下它就相当于是运行powershell时自动加载的脚本,代码如下function print { [CmdletBinding()] Param( [ValidateNotNullOrEmpty()] $param1="default1" [ValidateNotNullOrEmpt... 阅读全文
posted @ 2012-06-28 16:35 heqichang 阅读(2736) 评论(0) 推荐(0) 编辑