Pat Spencer
Friday, May 27, 2011
Powershell Arrays
1) How do I create a dynamic array
$a = @()
2) How do I append an element to array
$a += "a"
$a += "b"
3) how do I do a UBOUND on an array
.NET array indexes are zero-based, so ubound is length-1:
$a.length - 1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment