Monday, January 19, 2009

use of NewLine

to identify the type of OS with service pack

PS R:\> $line1 = [environment]::NewLine
PS R:\> $line2 = [environment]::OSVersion
PS R:\> $line3 = $line1 + $line2
PS R:\> $line3



Microsoft Windows NT 5.1.2600 Service Pack 2

'NewLine' will leave a block of 4 rows of spaces

No comments:

Post a Comment