Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm working on Windows 7 using the cmd console. How do I hide the path in the prompt?

share|improve this question
    
why do you want to? –  soandos Jul 26 '11 at 16:38
    
real-estate ... –  Chris Jul 26 '11 at 16:40
    
Sorry, dont follow. You mean you want to see more on the screen? –  soandos Jul 26 '11 at 16:41
2  
That's what he means, exactly. –  cularis Jul 26 '11 at 17:01
2  
@barlop, I believe real estate is a fairly standard way to refer to the space available on the screen - e.g. bing.com/… –  dsolimano Jul 26 '11 at 19:24

3 Answers 3

up vote 21 down vote accepted

You can use

prompt [text]

command. Type prompt /? to list all of the available parameters. For example, the following command sets "> (greater-than sign)" as prompt.

prompt $g
share|improve this answer
2  
I feel FREE!!!! –  Chris Jul 26 '11 at 17:09
    
Is there a way to make this stick ie become default? –  Chris Moutray Aug 20 at 13:36

if you want to display your name as prompt type the following command

prompt "your name"

want to come back to the original prompt type this

prompt

share|improve this answer
    
That does not answer the question. –  Jan Doggen Oct 30 at 7:33

Some more tips:

If you want to go back to previous status (showing full path), just type prompt without any arguments, and press Enter. If you just want to see current working directory (the same as pwd in linux), type chdir or cd without any arguments and press Enter.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.