How to split long commands over multiple lines in PowerShell

Posted by asgerhallas on Stack Overflow See other posts from Stack Overflow or by asgerhallas
Published on 2010-04-09T14:11:01Z Indexed on 2010/04/09 14:13 UTC
Read the original article Hit count: 273

Filed under:

How do you take a commmand like this in PowerShell and split it across multiple lines:

&"C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe" -verb:sync -source:contentPath="c:\workspace\xxx\master\Build\_PublishedWebsites\xxx.Web" -dest:contentPath="c:\websites\xxx\wwwroot\,computerName=192.168.1.1,username=administrator,password=xxx"

© Stack Overflow or respective owner

Related posts about powershell