Path: utzoo!attcan!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!think!bbn!granite!horvath From: horvath@granite.cr.bull.com (John Horvath) Newsgroups: comp.sys.ibm.pc Subject: Re: How do I ECHO a blank line from batch file? Keywords: batch file ECHO Message-ID: <1990Mar28.182016.16893@granite.cr.bull.com> Date: 28 Mar 90 18:20:16 GMT References: <4522@mace.cc.purdue.edu> Reply-To: horvath@granite.cr.bull.com (John Horvath) Distribution: na Organization: Bull HN Information Systems Inc. Lines: 49 Vegtable: Broccoli In article <4522@mace.cc.purdue.edu> du4@mace.cc.purdue.edu (Ted Goldstein) writes: >The other day while working on a little batch file I wanted to >put a blank line between two small paragraphs of text that get >ECHOed to the screen, and was unable to do so. If you use ECHO >... I couldn't figure out a way with ECHO either, so I used a program to output a CR-LF and referenced in the BAT file like: C:\tools\cr.exe echo This text is surrounded by two blank lines. C:\tools\cr.exe You could make cr.exe in either C with: main() { printf("\n"); } But the .exe will take up 7000 bytes or do it in assembler and use only 500. Not being a fluent assembler programmer, the following example could probably be abreviated. ;Turbo assembler source for outputing CR-LF ; TASM cr.asm ; TLINK cr.obj ; DOSSEG .MODEL SMALL .STACK 100H .DATA cr_chr db 13,10,'$' .CODE crlf proc near ; set up data segement mov ax,@Data mov ds,ax ; print out the string mov ah,9 mov dx, OFFSET cr_chr int 21h ; exit code mov ah,4ch int 21h crlf ENDP end crlf