Count属性(行数 @)

在PS2.0中,如果返回值为空,则count也会返回空(vm.txt内容为空),如下:

(gc d:\vm.txt).count

如果加上@的话,会返回0

@(gc d:\vm.txt).count

 

在PS3.0中,即使内容为空,count也会返回0

 

====================================

判断$ip是否为数组
$ip is [array]

Format-Table -AutoSize
Format-Table -wrap

posted on 2014-06-09 17:18  momingliu11  阅读(266)  评论(0编辑  收藏  举报