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

原文地址:https://www.cnblogs.com/dreamer-fish/p/3778316.html