Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I permanently change the contents of the command prompt under Windows 7? I know about the prompt command, and the content options, but I'm not sure where to save the custom prompt so that it's used every time. Old web pages say autoexec.bat, but that seems to be an uneditable dummy file under 7.

share|improve this question
up vote 4 down vote accepted

Use the User Environment variables.

Right Click Computer --> Properties --> Advanced Settings --> Advanced --> Environment Variables

In the User variables box click "New..".

Name the variable "Prompt" (without quotes), and set it's value to what you want the prompt to be (refer to "prompt /?" at a command line).

OK --> OK

Open a command prompt (cmd) and it should use that prompt.

Tested in Windows 7, and it still works like it did in NT 4 :)

Hope that helps...

share|improve this answer

I found some instructions here: and here: that let you customize your command prompt. Evidently there are several registry keys that let you modify the default behavior of cmd.

share|improve this answer

You must log in to answer this question.

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