Stopping command prompt from showing current directory in windows XP?

10

1

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.

Jared

Posted 2009-09-03T20:41:30.497

Reputation: 2 175

Answers

18

Use prompt:

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

Use help prompt to see some more options.

Jon Skeet

Posted 2009-09-03T20:41:30.497

Reputation: 5 046

5

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.

PhiLho

Posted 2009-09-03T20:41:30.497

Reputation: 271

1Thanks! Clever use of $_ to get a new line in the prompt! – Jaywalker – 2014-08-28T09:49:22.920

3

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

prompt /?

raven

Posted 2009-09-03T20:41:30.497

Reputation: 5 135

2

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.

Rob Kam

Posted 2009-09-03T20:41:30.497

Reputation: 1 749

0

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

Phoshi

Posted 2009-09-03T20:41:30.497

Reputation: 22 001

0

or maybe cd \

user8228

Posted 2009-09-03T20:41:30.497

Reputation: