How to use newline character in text in cmd batch?

后端 未结 12 1893
忘掉有多难
忘掉有多难 2020-12-31 07:08

I would like to do

svn commit -m \"\"

But message should have two lines:

Commit by: firstuser
Bug track: 92         


        
12条回答
  •  爱一瞬间的悲伤
    2020-12-31 07:40

    I had the same problem and while Claes Mogren's answer does not work with cmd.exe it made me think if there's a shell on Windows that could do that.
    And of course there is... PowerShell.

    Using PowerShell shell you can achieve this using following command:

    svn ci -m "reference to Ninject fixed`nsome ignores added"
    

    Notice the combination of backqoute and n in the message

    `n
    

提交回复
热议问题