NewLine in batch file

W

Wensi Peng

Hello,

I am trying to make a comparison between batch Vbscript.

WriteBlankLines 1 = Echo.

VBCrlf = ? --- What is the equivalent command in a batch file?
I need a new line, not a blankline. How

Thanks,
Wensi
 
M

Matthias Tacke

Wensi said:
Hello,

I am trying to make a comparison between batch Vbscript.

WriteBlankLines 1 = Echo.

VBCrlf = ? --- What is the equivalent command in a batch file?
I need a new line, not a blankline. How

Hi Wensi Peng, I'm unsure if I understand right.

echo in batch always has crlf attached.
if you want to output a blank line without echo status being reported
use:
echo.

If you want to output a line in a batch *without* crlf, there is a
work around with the set /P command.

@set /P dummy="This line has no crlf and quotes are suppressed )"<NUL
@echo.(This follows on the same line.

HTH
 
W

Wensi Peng

Thanks!
Matthias Tacke said:
Hi Wensi Peng, I'm unsure if I understand right.

echo in batch always has crlf attached.
if you want to output a blank line without echo status being reported
use:
echo.

If you want to output a line in a batch *without* crlf, there is a
work around with the set /P command.

@set /P dummy="This line has no crlf and quotes are suppressed )"<NUL
@echo.(This follows on the same line.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top