2014年5月20日
摘要: $pshome :powershell的主目录$profile :显示 Windows PowerShell 配置文件的路径test-path $profile :确定是否已经在系统上创建了 Windows PowerShell 配置文件powershell.exe 主机配置文件(在 Windows... 阅读全文
posted @ 2014-05-20 11:28 momingliu11 阅读(7216) 评论(0) 推荐(1) 编辑
摘要: 一个PowerShell函数可以有多个返回值。要接收这些返回值,只需要将返回值赋给多个变量:function Get-DateTimeInfo{ # Value 1 Get-Date -Format 'dddd' # Value 2 Get-Date -Format 'MMM... 阅读全文
posted @ 2014-05-20 10:46 momingliu11 阅读(661) 评论(0) 推荐(0) 编辑