Command Prompt for Windows

Command ENABLE


Enable or disable an item in a dialog box.


ENABLE dlg_id [id] state
dlg_idSpecifies the identifier of the dialog box that contains the item.
idSpecifies the identifier of the item.
stateA value that specifies the state of the item. A value of 0 disables the item and a value of 1 enables the item in the dialog box.


When an item in a dialog box is disabled then the item will be greyed out and will not accept any user input.

All types of items may be enabled or disabled.

When parameter id is not specified then the state of dialog box is changed.

Also see command ISENABLED.