vbscript multiple line syntax

Vbscript 如何将输出内容换行?

 

' VbCrLf represetns Carriage return–linefeed combination, for more information see VBscript Constants.
WScript.Echo "Line 1 ..." & VbCrLf & "Line 2 ..."

' use an underscore at the end of a line to continue it to the next line, for more information see vbscript syntax or split VBScript into multiple lines.
WScript.Echo "Line 1 ..." &_
              VbCrLf & "Line 2 ..." &_
              VbCrLf & "Line 3 ..." &_
              VbCrLf & "Line 4 ..."

 

posted @ 2014-04-02 14:26  細水長流  阅读(201)  评论(0编辑  收藏  举报