NewLine in batch file

  • Thread starter Thread starter Wensi Peng
  • Start date Start date
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
 
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
 
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
 
Back
Top