ECHOs to the same line

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.
 
P

Phil Robyn

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 - - - - - - - - - -
 

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