Mac*_*inB 2 arrays indexing powershell arraylist output
在PowerShell中,如何防止[System.Collections.ArrayList]$ArrayList=@() ; $ArrayList.Add("New thing")将新索引的值发送到主机?
谢谢!
您可以将结果转换为[void],或重定向到null
[void]$ArrayList.Add("New thing")
$ArrayList.Add("New thing") > $nul
$ArrayList.Add("New thing") | out-null
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
313 次 |
| 最近记录: |