A personal repository of technical notes. - CSC

Custom Command Prompt Prompt

How to make a custom 2 line command prompt for all command prompts in Windows

Example

C:\WINDOWS\system32
> _


Steps

  1. Right-click My Computer
  2. Properties
  3. Advanced system settings
  4. Environment Variables button
  5. New button under User variables for My User Name
  6. Variable name: PROMPT
  7. Variable value: $P$_$G$S
  8. OK
Notes
Where $P$_$G$S is
$p = Current drive and path
$_ = ENTER-LINEFEED
$g = > (greater-than sign)
$s = space
Note: Tested in Windows 7, Windows Server 2008, Windows XP.

References
Prompt
http://technet.microsoft.com/en-us/library/bb490977.aspx

No comments:

Post a Comment