delimiting characters in DOS echo command trying to use "|" in echo

I am trying to generate a .bat file from my asp page - here is the last piece that is not working - i think the | character is failing it on line 14. Thanks in advance. my goal is to have  abt file do a few functions - then create a text file.

echo [test file] > test.txt
echo 0 >> test.txt
echo 2 >> test.txt
echo 0 >> test.txt
echo 0 >> test.txt
echo 0 >> test.txt
echo 1 >> test.txt
echo 0 >> test.txt
echo 0 >> test.txt
echo 0 >> test.txt
echo 0 >> test.txt
echo 100 >> test.txt
echo 10341 >>test.txt
echo Microsoft Word 2003|1090 >> test.txt
echo Insert and edit text, symbols and special characters|Module1090_302 (PB) >> test.txt
echo 1 >> test.txt
echo ~ >> test.txt
echo 6~You find all of the formatting marks distracting. Hide them.~302~~~~~~~~~~12927~WW03S-1-1 >> test.txt
nphoenixAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

samchanCommented:
The | character is called "pipe" in DOS which is used to redirects the output of a program or command to a second program or command.

For example:
To sort a directory listing based on the time the files were last modified, the output of a directory listing is piped to the SORT filter which sorts on the 39th character of each line:
DIR c:\dirlist | SORT /+39

The possible solutions for your problem could be:
1. Use a different character instead of |
2. Echo "Microsoft Word 2003|1090" >> test.txt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nphoenixAuthor Commented:
Impossible - need to have the "|" just found that ^ preceding it makes it work - thanks
0
nphoenixAuthor Commented:
and the " " would appear in the output
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.