Difference between revisions of "Power Shell"
Jump to navigation
Jump to search
(→FTP: Added links) |
(→Variables: Added "Arrays") |
||
Line 134: | Line 134: | ||
<br>'''Strip Whitespace'''<br> | <br>'''Strip Whitespace'''<br> | ||
<source lang="powershell"> $string = $string.TrimEnd() </source> | <source lang="powershell"> $string = $string.TrimEnd() </source> | ||
=== Arrays === | |||
<source lang="powershell"> | |||
$array = @() # Create blank array | |||
$array += 34 # Add value to end of array | |||
</source> | |||
=== Datetime === | === Datetime === |