Enable/Disable controls in a batch function.