下面的脚本演示了Powershell中的while循环。
> $array = @("item1", "item2", "item3")
$counter = 0;
while($counter -lt $array.length){
$array[$counter]
$counter += 1
}
item1
item2
item3
日期:2019-08-20 13:51:11 来源:oir作者:oir
下面的脚本演示了Powershell中的while循环。
> $array = @("item1", "item2", "item3")
$counter = 0;
while($counter -lt $array.length){
$array[$counter]
$counter += 1
}
item1
item2
item3