ninjamunky 0 Report post Posted May 26, 2005 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: @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 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 Again, help appreciated. Share this post Link to post Share on other sites
signatureimage 0 Report post Posted May 27, 2005 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: 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. Share this post Link to post Share on other sites
ninjamunky 0 Report post Posted May 27, 2005 Thanks a lot mate Worked perfectly. Thanks again. Share this post Link to post Share on other sites
iGuest 3 Report post Posted August 5, 2010 The only character that is probaly problematic is the "|" character. Try using "^|" instead of "|". This will treat it as a character rather than a operator Share this post Link to post Share on other sites