Powershell - 其他運算子示例



以下指令碼演示不同的運算子。

> $location = Get-Location
 
> $location -is 'System.Management.Automation.PathInfo'
 True
 
> $location -isNot 'System.Management.Automation.PathInfo'
 True
 
> $i = 1
 
> $i++
 
> $i
 2
powershell_operators.htm
廣告
© . All rights reserved.