VOGONS

Common searches


First post, by jez

User metadata
Rank Member
Rank
Member

When I put several ECHO's in a batch file, like so:

@ECHO Here is @ECHO a test output @ECHO from some echo @ECHO commands in a @ECHO batch file. […]
Show full quote

@ECHO Here is
@ECHO a test output
@ECHO from some echo
@ECHO commands in a
@ECHO batch file.

... DOSBox's ECHO will insert a blank line in between each echo, so it ends each echo with *two* newlines. This is wrong, I believe, and if I run the same batch file in WinXP commandline, or Win98 commandline, I do not get these blank lines between echo's. Could the echo command be changed not to insert these ectra newlines?[/quote]

== Jez ==

Reply 1 of 3, by Vince.Bloodworks

User metadata
Rank Newbie
Rank
Newbie

Hey Jez,
If you use "@ECHO OFF" at the top line and "ECHO" instead of "@ECHO" each echo will prompt just the one line it has to.
Greedings 😀

Reply 3 of 3, by Vince.Bloodworks

User metadata
Rank Newbie
Rank
Newbie

^^ I tried the same thing a few days ago and thought something like:
"shit .. what is that? Why the hell is there one blank line after each echo?"
... But when I started working on my old pentium-166 MHz ( with real DOS 😁 ) and I opened a batch file I saw the first line was an "@ECHO OFF" and all other lines to prompt something used "ECHO" ... I tried it out in Dosbox and ... surprise! YEAH it works! 🤣

-----------
Vince

... and about that DOS machine: I love to work with it =D ... just programming or play some games like Blood,Doom or Duke 3D, and others,..
=P