Question The creepiest CMD command ever

Feb 14, 2019
3
0
10
0
For any of you who know what Herobrine (The minecraft entity) is, me and my friend were playing with the command prompt trying to make it seem like herobrine had appeared using the following command:

cls && set Herobrine=(color f2 && prompt Herobrine && echo welcome)

what we thought the command would do is set the variable herobrine to, when run, change the color, change the prompt to Herobrine, and say welcome.

What this command should actually do, is set a variable called herobrine to "(color f2", change the prompt to Herobrine, and say welcome).

so, after executing the above command, it does what it should:




but then, try typing %Herobrine%.
instead of producing an error since (color f2 is not a valid command, it does this:



It just says "More?", and commands don't work!!!

Leave your thoughts below!!!
 

gardenman

Reputable
Herald
As you already know, the variable is being truncated. Only the (color f2 is being added to the variable.

So when you try to run that variable by typing %Herobrine% only the first command in the parenthesis is being run.

The reason it's asking for More? is because you started a command with an opening parenthesis and now it expects more commands and/or a closing parenthesis.

(color f2 is the start of a command. It want's more, or a ) to end. Type in a few more commands and then end it with the closing parenthesis.

(color f2
cls
echo Hello world!
)


Then the More? goes away because the command is complete.

Alternatively, you can press Left Ctrl + Break to end the
More? prompt.

Discussion of this topic elsewhere: https://www.sevenforums.com/general-discussion/299093-what-more-when-typing-cmd-post2481127.html?s=c104457c6089d2c7e7670d48b4cd764b#post2481127
The final answer from Kari clarified it for me.
 

Similar threads


ASK THE COMMUNITY

TRENDING THREADS