Windows Command Prompt – How to Display Custom Text Instead of Path

cmd.execommand linepowershellwindows

When I open CMD, I see: C:\users\*****\>
how can I change this to be custom, for example: example>
I'm trying to make a cmd game and want a custom start text for the command prompt,

I would prefer the answer to be able to be copy and pasted into a .bat or .cmd file, if necessary, I might be able to use a PowerShell script, but I prefer command prompt.

Best Answer

How can I change the prompt to be custom, for example: example>

Use the prompt command:

prompt example$G 
  • $G is the > character.
  • Make sure you have a trailing space.

Further Reading: PROMPT - Windows CMD - SS64.com