Computing.Net > Forums > Programming > batch file output problem

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 file output problem

Reply to Message Icon

Name: djas
Date: September 3, 2004 at 06:01:21 Pacific
OS: Windows XP Pro SP2
CPU/Ram: n/a
Comment:

i found this text on this forum but am having trouble adapting it

set /p str1=
echo %str1% > output.txt
set /p str2=
echo %str2% >> output.txt

it works like that but if i try to add

set /p str3=
echo %str3% >>> output.txt

on the next line it doesn't work
please help
thanx in advance

djas



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: September 3, 2004 at 06:26:44 Pacific
Reply:

Replace

echo %str3% >>> output.txt

with

echo %str3% >> output.txt

the >> is a "redirector" meaning "append to the file" while > means "create the file", so you don't have to type more than two >.


0

Response Number 2
Name: djas
Date: September 5, 2004 at 10:19:37 Pacific
Reply:

thanx very much that was going to be my next question
cheers

djas


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 Programming Forum Home


Sponsored links

Ads by Google


Results for: batch file output problem

batch file output in table format www.computing.net/answers/programming/batch-file-output-in-table-format/16847.html

Batch file output formatting www.computing.net/answers/programming/batch-file-output-formatting/15742.html

Insert a Column into a Batch File www.computing.net/answers/programming/insert-a-column-into-a-batch-file/19788.html