Export (0) Print
Expand All

Command ProcessorEnableExtensions

Updated: March 28, 2003

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

HKLM\SOFTWARE\Microsoft\Command Processor

 

Data type Range Default value

REG_DWORD

0 | 1

1

Description

Specifies whether the extensions to Command Processor (Cmd.exe), such as chdir and setlocal, are enabled. Because the extensions might be incompatible with a command-script language, Windows Server 2003 lets you disable the extensions. This entry affects all extensions. You cannot use it to enable or disable extensions selectively. You can, however, disable extensions for a particular invocation of Cmd.exe by using the /E:OFF switch.

 

Value Meaning

0

Disabled

1

Enabled

Change Method

You can change the value of this entry by using Cmd.exe and typing cmd /e:off, but only for the duration of that Cmd.exe's execution. For all other changes, you must edit the registry directly.

Activation Method

If you make changes to the value of this entry by editing the registry directly, you must restart Cmd.exe to make the changes effective.

Notes

  • EnableExtensions can appear in HKLM and HKCU. If both appear in the registry, then the value of the entry in HKCU takes precedence over the value in HKLM.

  • The datatype of this entry can be either REG_DWORD or REG_SZ.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft