How to use newline character in text in cmd batch?

后端 未结 12 1897
忘掉有多难
忘掉有多难 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:16

    How about using the -F parameter to get the log message from a file?

    Then, you could do this (untested):

    ECHO Commit by: firstuser>SvnLog.txt
    ECHO Bug track: 9283>>SvnLog.txt
    
    SVN COMMIT -F SvnLog.txt
    

提交回复
热议问题