Tweet about this on TwitterShare on FacebookShare on Google+Share on StumbleUponShare on TumblrShare on RedditPin on PinterestEmail this to someone

First of all I must say this is very simple Tech Tip but could be useful when you work with Windows command prompt.

Default command prompt is $p$g which represents the current path and greater than sign (>), if you path is closer to root then it takes less space for the windows command prompt. But once you move inside few more levels deep into the directory hierarchy you will find that space you getting to type on the first line is limited or may be even wrapped in to next line, moreover it is very difficult to separate out the prompt and the command you typing or typed.

For ex: if you work with stsadm.exe  tool you will be in following folder c:\Program Files\common files\microsoft shared\web server extensions\12\bin . your command prompt will be as follows

SimpleTip_01
But you can easily change your prompt to include carriage return and line feed, so that your input location can be moved to new line.
Try following prompt by executing the command
your command prompt will be in a new line as follows

SimpleTip 02

As you can see now your command is separated from prompt line and it is clear what is your working folder and what is your command to execute. Hope this small tip will help you.

You will find more useful tips related to windows command prompt and other symbols you could use from SCOTT HANSELMAN blog

Tweet about this on TwitterShare on FacebookShare on Google+Share on StumbleUponShare on TumblrShare on RedditPin on PinterestEmail this to someone