Batch Echo Problem

free web hosting
Free Web Hosting > Computers & Tech > Programming

Batch Echo Problem

ninjamunky
I'm trying to make a batch that displays this ASCII text with echo, but it gives me an error. Here is the script I have:

QUOTE
@echo off
cls
echo      ___                      ___        ___          ___   
echo    /__/\        ___          /__/\      /  /\        /  /\   
echo    \  \:\      /  /\        \  \:\    /  /:/      /  /::\ 
echo      \  \:\    /  /:/          \  \:\  /__/::\      /  /:/\:\ 
echo  _____\__\:\  /__/::\      _____\__\:\  \__\/\:\    /  /:/~/::\
echo /__/::::::::\ \__\/\:\__  /__/::::::::\    \  \:\  /__/:/ /:/\:\
echo \  \:\~~\~~\/    \  \:\/\ \  \:\~~\~~\/    \__\:\ \  \:\/:/__\/
echo  \  \:\  ~~~      \__\::/  \  \:\  ~~~      /  /:/  \  \::/   
echo  \  \:\          /__/:/    \  \:\        /__/:/    \  \:\   
echo    \  \:\        \__\/      \  \:\        \__\/      \  \:\   
echo    \__\/                    \__\/                    \__\/   
echo  ___          ___          ___          ___               

echo    /__/\        /__/\        /__/\        /__/|          ___ 
echo    |  |::\        \  \:\        \  \:\      |  |:|        /__/| 
echo    |  |:|:\        \  \:\        \  \:\      |  |:|        |  |:| 
echo  __|__|:|\:\  ___  \  \:\  _____\__\:\  __|  |:|        |  |:| 
echo /__/::::| \:\ /__/\  \__\:\ /__/::::::::\ /__/\_|:|____  __|__|:| 
echo \  \:\~~\__\/ \  \:\ /  /:/ \  \:\~~\~~\/ \  \:\/:::::/ /__/::::\ 
echo  \  \:\        \  \:\  /:/  \  \:\  ~~~  \  \::/~~~~    ~\~~\:\
echo  \  \:\        \  \:\/:/    \  \:\        \  \:\          \  \:\
echo    \  \:\        \  \::/      \  \:\        \  \:\          \__\/
echo    \__\/        \__\/        \__\/        \__\/               
pause
exit


I've highlighted the trouble spot in red. Is there any way around this? I would appreciate some help on this smile.gif You can save this to a .bat for yourself and see the error, just run in through cmd so it doesn't exit right away and you'll see the error. My friend said it was the slashes on the one line, but if it's echo, it should be like a comment, just displayed; or at least in my world it would be tongue.gif Again, help appreciated.

 

 

 


Reply

signatureimage
Dear ninjamunky,

Some characters are indeed reserved for some special functions.
Like the greater-than sign, the less-than sign and the pipe sign, and others.
Therefore it is my habit to type all these texts into a separate file,
like message1.txt

And then, in the batch file, I execute:
CODE
type message1.txt


This has the very same result as various echo statements.
The special batch characters pose no problem that way.
And furthermore, I find it easier to maintain.

Reply

ninjamunky
Thanks a lot mate biggrin.gif Worked perfectly. Thanks again.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. batch echo % sign - 20.42 hr back. (1)
  2. bat echo no newline - 28.07 hr back. (1)
  3. bat echo text no newline - 28.47 hr back. (1)
  4. how to echo greater than sign - 31.53 hr back. (1)
  5. batch echo space tab - 35.97 hr back. (1)
  6. batch echo back a line - 38.19 hr back. (1)
  7. windows echo no newline - 43.20 hr back. (1)
  8. bat echo without newline - 49.43 hr back. (1)
  9. echo windows without newline batch - 59.37 hr back. (1)
  10. batch echo pipe - 59.45 hr back. (1)
  11. how to echo using batch file without newline - 60.05 hr back. (1)
  12. dos cmd echo greater than - 61.14 hr back. (1)
  13. windows echo without new line batch - 65.55 hr back. (1)
  14. cmd batch echo new line - 68.03 hr back. (1)
Similar Topics

Keywords : batch echo


    Looking for batch, echo, problem






*SIMILAR VIDEOS*
Searching Video's for batch, echo, problem
advertisement




Batch Echo Problem



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE