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
1  
@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
show 3 more comments

2 Answers

up vote 16 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
    
I feel FREE!!!! –  Chris Jul 26 '11 at 17:09
add comment

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
add comment

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.