Steven N. Vidanes
Steven N. Vidanes

Reputation: 41

how can i insert this ascii text art in cmd or command prompt?

how can i insert this text art in cmd? Do i do it like this?

@echo off
cls
echo .................................................__________......
echo .... _________________________________________ ./           \\___
echo .___/             /..|        /_/   _____   |_ |   _______   ||..
echo .__/ ____       //...|   ____/  |  |.....| ||..|  /...||...\ ||..
echo ../_____/      //....|   || ....|  |_____| ||..|   ___||___  ||..
echo ......./      //.....|   |____..|       ___||..|  |___  ___| ||..
echo ....../      //......|    ___/..|   |\   \\ ...|   ...||...  ||..
echo ...../      //.......|   || ....|   |.\   \\ ..|   ...||...  ||..
echo ..../      //_______ |   |______|_  |..\   \\ .|  \___||___/ ||..
echo .../  ____________ /_|           /  |__.\   \\ |             ||..
echo __/_______________/.\___________/_____/..\___\\\____________//...
pause

Upvotes: 2

Views: 58566

Answers (5)

CRO-THEHACKER
CRO-THEHACKER

Reputation: 1

pipes ( | )

example:

ping google.com | TEST.txt 

this tells the command (ping google.com) to import the out-put text to TEST.txt to get around this do " ^| " witch tells your batch file to skip the next character & keep going.

Upvotes: -1

Jonathan.Brink
Jonathan.Brink

Reputation: 25413

Possibly the easiest way would be to save your raw ascii art in a text file (copy/paste it into your editor).

Then, simply type out the file:

type asciiArt.txt

Upvotes: 2

Erick
Erick

Reputation: 11

@echo off
title My Name Is Zero
:loop
cls

Set /a num=(%Random% %%9)+1

color %num%

echo .................................................__________......
echo .... _________________________________________ ./           \\___
echo .___/             /..^|        /_/   _____   ^|_ ^|   _______   ^|^|..
echo .__/ ____       //...^|   ____/  ^|  ^|.....^| ^|^|..^|  /...^|^|...\ ^|^|..
echo ../_____/      //....^|   ^|^| ....^|  ^|_____^| ^|^|..^|   ___^|^|___  ^|^|..
echo ......./      //.....^|   ^|____..^|       ___^|^|..^|  ^|___  ___^| ^|^|..
echo ....../      //......^|    ___/..^|   ^|\   \\ ...^|   ...^|^|...  ^|^|..
echo ...../      //.......^|   ^|^| ....^|   ^|.\   \\ ..^|   ...^|^|...  ^|^|..
echo ..../      //_______ ^|   ^|______^|_  ^|..\   \\ .^|  \___^|^|___/ ^|^|..
echo .../  ____________ /_^|           /  ^|__.\   \\ ^|             ^|^|..
echo __/_______________/.\___________/_____/..\___\\\____________//...

ping 127.0.0.1 -n 3 -w **500** > nul

goto :loop

Upvotes: -2

ags2o22
ags2o22

Reputation: 21

@echo off

:loop

Set /a num=(%Random% %%9)+1

color %num%

echo .................................................__________......
echo .... _________________________________________ ./           \\___
echo .___/             /..^|        /_/   _____   ^|_ ^|   _______   ^|^|..
echo .__/ ____       //...^|   ____/  ^|  ^|.....^| ^|^|..^|  /...^|^|...\ ^|^|..
echo ../_____/      //....^|   ^|^| ....^|  ^|_____^| ^|^|..^|   ___^|^|___  ^|^|..
echo ......./      //.....^|   ^|____..^|       ___^|^|..^|  ^|___  ___^| ^|^|..
echo ....../      //......^|    ___/..^|   ^|\   \\ ...^|   ...^|^|...  ^|^|..
echo ...../      //.......^|   ^|^| ....^|   ^|.\   \\ ..^|   ...^|^|...  ^|^|..
echo ..../      //_______ ^|   ^|______^|_  ^|..\   \\ .^|  \___^|^|___/ ^|^|..
echo .../  ____________ /_^|           /  ^|__.\   \\ ^|             ^|^|..
echo __/_______________/.\___________/_____/..\___\\\____________//...

pause

goto :loop

This should work and flash a random color every time you press a button.

Upvotes: 2

BartekB
BartekB

Reputation: 8650

The problem with this ASCII art is the use of "|" special character. So no, removing echo off won't help. It's necessary to avoid seeing echo command before each line of your ASCII art. Escaping all pipes will. All you need to do is replace any appearance of: | with ^| and you are good to go.

Just tested and it went fine. Previously it was erroring out each time you had: echo ....|... because it would read: echo .... and pipe it to ... so latter was not found command - pause was never run and whole ASCII was not displayed.

Upvotes: 3

Related Questions