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.

How do I stop the command prompt from showing c:\dir1\dir2\dir3\dir4 It gets really annoying when I'm 5 or 6 directories deep.

share|improve this question

6 Answers 6

up vote 16 down vote accepted

Use prompt:

C:\Stuff> prompt $$
$ prompt $G
> prompt $N:$G
c:> prompt Hello
Hello (etc)

Use help prompt to see some more options.

share|improve this answer

With the prompt command. Type the following a the command line to find out how to use it:

prompt /?
share|improve this answer

I use prompt $p$_$g$s (actually in my environment variables).
Thus I have the current path, always useful, a new line and the classical > and a space.
Even at the deep level of folders, I have plenty of room for my commands.

share|improve this answer
Thanks! Clever use of $_ to get a new line in the prompt! –  Jaywalker Aug 28 '14 at 9:49

Set the environment variable "prompt" to "$g", (or whatever). To do this: right click the My Computer icon, select Properties, click on the Advanced tab, there's a button for Environment Variables.

share|improve this answer

You could use prompt. Have a batch file in system32 called go with

cd %1
prompt Love And Kittens$G

and type go c:\ to goto c:\, but still be faced with a cute command prompt :3 ($G is the >, other special symbols are shown in /?)

share|improve this answer

or maybe cd \

share|improve this answer

Your Answer


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.