Question The creepiest CMD command ever

Feb 14, 2019
4
0
10
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:

m803mv.png



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

dlot9k.png


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

Leave your thoughts below!!!
 

gardenman

Splendid
Moderator
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...=c104457c6089d2c7e7670d48b4cd764b#post2481127
The final answer from Kari clarified it for me.
 

britechguy

Commendable
Jul 2, 2019
1,479
243
1,340
I have never seen anyone respond this far after something with thanks, and it's very nice to see.

Things can and do fall through the cracks, but when it comes to thanking anyone the old saw, "Better late than never," definitely applies.

Kudos to you for giving them now.
 

TRENDING THREADS