ECHOs to the same line

  • Thread starter Thread starter Ondrej Sevecek
  • Start date Start date
O

Ondrej Sevecek

Hello,
is there a method to use 2 ECHOS to print something to the same line?

ECHO hello, this two lines should appear
ECHO on the same line in the console!

Ondra.
 
Ondrej said:
Hello,
is there a method to use 2 ECHOS to print something to the same line?

ECHO hello, this two lines should appear
ECHO on the same line in the console!

Ondra.
- - - - - - - - - - begin screen capture - - - - - - - - - -
=====begin c:\temp\NoCRLF.cmd ====================
1. @echo off & SETLOCAL DISABLEDELAYEDEXPANSION
2. echo/|set /p=hello, these two lines should appear
3. echo/|set /p= on the same line in the console!
=====end c:\temp\NoCRLF.cmd ====================

<Win2000> c:\cmd>c:\temp\NoCRLF
hello, these two lines should appear on the same line in the console!
- - - - - - - - - - end screen capture - - - - - - - - - -
 
Back
Top