Arcade File Downloads Support Forum
Email
Confirm email
Articles File Help Startup DB Tips Service DB Hijack This! Analyzer

 

Command/DOS prompt Customizations
NEW HijackThis automated log analyzer! Get your logs analyzed INSTANTLY!

Format the command prompt

To format the command prompt find this key in the registry

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetContro lSession Manager
Environment]

And create or modify a string value called PROMPT, and insert any of the following codes or variables in any order as a value.

Special Codes
$A - & (Ampersand)
$B - | (pipe)
$C - ( (Left parenthesis)
$D - Current date
$E - Escape code (ASCII code 27)
$F - ) (Right parenthesis)
$G - > (greater-than sign)
$H - Backspace (erases previous character)
$L - < (less-than sign)
$N - Current drive
$P - Current drive and path
$Q - = (equal sign)
$S - (space)
$T - Current time
$V - Windows XP version number
$_ - Carriage return and linefeed
$$ - $ (dollar sign)

Variables
%USERNAME% - Current Username
%COMPUTERNAME% - Local computer name
%USERDOMAIN% - Local domain name

The default prompt is "$P$G" (e.g. "C:>"), some examples include:
[%computername%]$S$P$G to show the computer, drive and path
[%username%]$S$P$G to show the current user, drive and path

Restart or log-off Windows will be required for the change to take effect.


Written By: Private Pyle
Date: 5-2-04
Views: 10495
Printer Friendly

Article Index:
Talk About it! -->