June 19th, 2015

PowerTip: Line Continuation in PowerShell

Doctor Scripto
Scripter

Summary: Ensure a line continuation in Windows PowerShell.

Hey, Scripting Guy! Question What the line continuation character should use to ensure my Windows PowerShell code
           continues to the next line?

Hey, Scripting Guy! Answer The line continuation character in Windows PowerShell is the backtick.
           Type a <space>, the backtick, and then press ENTER, for example:

Get-Process -Name `
"Powershell_ISE"

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.