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