vbscript - Batch file message box: Carriage return in message body -


i'm showing message box batch file using this method given boflynn previous question.

i'm trying insert carriage return message box body text attempts , combinations of quote marks , char(13) have far failed.

with reference above linked answer, i'm looking messagbox put text on multiple lines, such as:

this shown in popup

is possible?

vbscript has builtin constant vbcr carriage return character. concatenate (sub)strings constant , display message box result:

msgbox "this will" & vbcr & "be shown" & vbcr & "in popup" 

to display multiline text batch file need pass each line separate argument

cscript messagebox.vbs "this will" "be shown" "in popup" 

and concatenate arguments

redim args(wscript.arguments.count-1) = 0 wscript.arguments.count-1   args(i) = wscript.arguments(i) next  msgbox join(args, vbcr) 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -