How to enter a multi-line command
问题 Is it possible to split a PowerShell command line over multiple lines? In Visual Basic I can use the underscore ( _ ) to continue the command in the next line. 回答1: You can use a space followed by the grave accent (backtick): Get-ChildItem -Recurse ` -Filter *.jpg ` | Select LastWriteTime However, this is only ever necessary in such cases as shown above. Usually you get automatic line continuation when a command cannot syntactically be complete at that point. This includes starting a new