Computing.Net > Forums > Windows XP > Batch script newline character?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch script newline character?

Reply to Message Icon

Name: gromul
Date: November 30, 2005 at 18:34:23 Pacific
OS: XP PRO
CPU/Ram: AMD 2000+ / 1GB
Comment:

How do I insert a newline character into a text file?

i.e.

echo ??? > 1.txt



Sponsored Link
Ads by Google

Response Number 1
Name: jubalsams
Date: November 30, 2005 at 19:57:22 Pacific
Reply:

You could put a CR/LF pair into a text file then TYPE that text file.

TYPE CRLF.TXT >> 1.TXT

Best


0

Response Number 2
Name: Mechanix2Go
Date: November 30, 2005 at 23:43:40 Pacific
Reply:

Yes but it's simpler to:

echo. >> somefile


If at first you don't succeed, you're about average.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch script newline character?

Batch Script www.computing.net/answers/windows-xp/batch-script/176090.html

homepage batch script www.computing.net/answers/windows-xp/homepage-batch-script/143253.html

batch script question www.computing.net/answers/windows-xp/batch-script-question/142196.html