Sunday 11 March 2018

windows 7 - How do I change the contents of the command prompt?


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.



Answer



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...


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...