PowerTip: Line Continuation in PowerShell

Doctor Scripto

Dr Scripto

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"

0 comments

Comments are closed. Login to edit/delete your existing comments