4

I'm trying to make a ascii skull in batch, yet the cmd doesn't show my art OR text when opened

start cmd.exe
@echo off
color a
cls

echo                 ^_________-----_____^
echo       ^____------           __      ----_^
echo^___----             ___------              \^
echo   ^----________        ----                 \^
echo        ^       -----__    |             _____)^
echo                    ^__-                /     \^
echo        ^_______-----    ___--          \    /)\^
echo  ^------_______      ---____            \__/  /^
echo               ^-----__    \ --    _          /\^
echo                      ^--__--__     \_____/   \_/\^
echo                              ^----|   /          |^
echo                                  ^|  |___________|^
echo                                  ^|  | ((_(_)| )_)^
echo                                  ^|  \_((_(_)|/(_)^
echo                                  ^\             (^
echo                                   ^\_____________)^

echo !OVER-PRICED COMPUTER ALERT!
echo !TERMINATE!

yet again, when I open my file NOTHING shows up. any help?

1
  • 1
    Why do you start cmd.exe? It just opens an additional console window. Do you perhaps want this message to appear as a welcome message when opening an interactive console session?
    – Daniel B
    Jul 24, 2016 at 8:17

1 Answer 1

4

You hadn't escaped command character i.e. " | " with " ^ " in your script.

Here is the corrected & modified version of your script

@echo off
color a
cls

echo                  _________-----_____
echo        ____------           __      ----_
echo  ___----             ___------              \
echo     ----________        ----                 \
echo                -----__    ^|             _____)
echo                     __-                /     \
echo         _______-----    ___--          \    /)\
echo   ------_______      ---____            \__/  /
echo                -----__    \ --    _          /\
echo                       --__--__     \_____/   \_/\
echo                               ---^|   /          ^|
echo                                  ^| ^|___________^|
echo                                  ^| ^| ((_(_)^| )_)
echo                                  ^|  \_((_(_)^|/(_)
echo                                   \             (
echo                                    \_____________)

echo !OVER-PRICED COMPUTER ALERT!
echo !TERMINATE!
pause>nul

Removed start cmd.exe as pointed out by @DanielB and made it to pause with no comment by adding pause>nul

enter image description here

3
  • 2
    The carets are not needed before the underscores.
    – dbenham
    Jul 24, 2016 at 13:31
  • 1
    @dbenham Yeah, ones not followed by | or any other command character can be skipped. Edited
    – clhy
    Jul 24, 2016 at 13:40
  • - Lovely art. I use ascii art in log files (to separate sections), and different ascii pictures to identify and differentiate release versions. But point is, I have always found it easier to put the art in a txt file, and use a command like type or equivalent. Ascii art for the win May 31, 2019 at 21:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .