Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 699

help with wscript.echo giving two messages in one

$
0
0
Hi

Forgive me for being so new, and not knowing very much, but I am wanting to see if someone can assist me with how to do a script. I can do it with Javascript, by using the "\n" but that does not seem to work in a VBScript option. Can anyone help me with this?

What i am trying to do, and I have searched for hours on how to do this without success... is to create a script that echo's two lines in the same message...

example:

wscript.echo "this is line one." & "this is line two."

in a single messagebox, the first line: This is line one. completes and like a carriage return to have the second line beneath the first line say: this is line two.

I have tried the following but they do not work...

Code:

wscript.echo "this is line one" vbCR
"this is line two."

Code:

LF = chr(10)
wscript.echo ("this is line one"), LF ("this is line two")

Code:

wscript.echo "this is line one." /n "this is line two."
Thank you,

Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>