Computing.Net > Forums > Disk Operating System > How can I make txt file with a bat

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.

How can I make txt file with a bat

Reply to Message Icon

Name: Eduardo
Date: August 25, 2002 at 10:00:40 Pacific
Comment:

Is it possible to make a bat file that make a
txt file without using edit or any other program?



Sponsored Link
Ads by Google

Response Number 1
Name: Doc
Date: August 25, 2002 at 10:48:14 Pacific
Reply:

Go here a look thru these...
http://www.simtel.net/pub/msdos/batchutl/


0

Response Number 2
Name: Secret_Doom
Date: August 25, 2002 at 17:13:45 Pacific
Reply:

Simply use the ECHO command and redirect its output to a file:

@echo off
echo Line one> file.ext
echo Line two>> file.ext
echo Line three>> file.ext
echo.>> file.ext
echo The above line is blank>> file.ext

After running such script, file.ext contains:

===== FILE.EXT BEGIN =====
Line one
Line two
Line three

The above line is blank.

===== FILE.EXT END =====

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br


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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: How can I make txt file with a bat

How can I make a file from disk install! www.computing.net/answers/dos/how-can-i-make-a-file-from-disk-install/5654.html

how can I get my files ? www.computing.net/answers/dos/how-can-i-get-my-files-/6035.html

I make my own BAT files and...several questions! www.computing.net/answers/dos/i-make-my-own-bat-files-andseveral-questions/3815.html