up vote 5 down vote favorite
share [g+] share [fb]

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.

link|improve this question

39% accept rate
feedback

6 Answers

up vote 11 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.

link|improve this answer
feedback

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

prompt /?
link|improve this answer
feedback

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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

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 /?)

link|improve this answer
feedback

or maybe cd \

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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