no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | windows:scripting:ps_new_line [2019/10/31 09:06] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== New line in PowerShell string ====== | ||
+ | Append " | ||
+ | Or use the following function | ||
+ | <code powershell |AppendNewLine> | ||
+ | function AppendNewLine { | ||
+ | $tmpData += $args[0] + $args[1] | ||
+ | $tmpData += " | ||
+ | return $tmpData | ||
+ | } | ||
+ | $string += AppendNewLine " | ||
+ | $string += AppendNewLine " | ||
+ | </ |