Powershell - 迴圈



下面的指令碼演示了 for 迴圈。

> $array = @("item1", "item2", "item3")
 
> for($i = 0; $i -lt $array.length; $i++){ $array[$i] }
item1
item2
item3
powershell_looping.htm
廣告
© . All rights reserved.