Change the Command Prompt (Windows NT/2000/XP) Popular
This setting allows you to change the format of the command prompt to show additional information instead of just the current drive and path ("C:\>").
![]() | This tweak can be easily applied using WinGuides Tweak Manager. Download a free trial now! |
Open your registry and find the key below.
Create or modify a REG_EXPAND_SZ string called "PROMPT" and set it to the required prompt format including any special codes or variables below.
Special Codes
Variables
The default prompt is "$P$G" (e.g. "C:\>"), some alternatives include:
Restart or log-off Windows for the change to take effect.
| (Default) | REG_SZ | (value not set) | |||
| PROMPT | REG_EXPAND_SZ | [%username%]$S$P$G | |||
| HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session ... | ||
Environment]
Value Name: PROMPT
Data Type: REG_EXPAND_SZ (Expanded String Value)
Value Data: Prompt Text (e.g. $P$G)
>> Recommended Download - check, repair and optimize your registry now with Registry Mechanic <<
Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.
Last modified: January 29, 2003
| More Guides » | Security Guide | Support Forums | Software Guide | Scripting Guide | Search |



