Enable / Disable Command prompt extensions

If the Windows 2000 / Windows XP Command Extensions are enabled the PROMPT command supports the following additional formatting characters:
  $+   zero or more plus sign (+) characters depending upon the
       depth of the PUSHD directory stack, one character for each
       level pushed.

  $M   Displays the remote name associated with the current drive
       letter or the empty string if current drive is not a network
       drive.
To enable or disable the command prompt extension in Windows 2000 or Windows XP, use the following registry hack:

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Command Processor
Name: EnableExtensions
Type: REG_DWORD
Value: 1 enable
Value: 0 disable

You can enable/disable the extensions for the command shell you are in by issuing the following commands:

cmd /y disables command extensions for this cmd session
cmd /x enables command extensions for this cmd session

Related tips:

About Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred network administration tool?