2013-10-19 15 views
1

在PowerShell中,如何防止[System.Collections.ArrayList][email protected]() ; $ArrayList.Add("New thing")向主機發送新索引的值?

謝謝!

回答

4

您可以把結果作爲[空],或重定向到空

[void]$ArrayList.Add("New thing") 
$ArrayList.Add("New thing") > $nul 
$ArrayList.Add("New thing") | out-null