This paper discusses how fast-response distributed battery energy storage could be used to implement post-contingency corrective control actions. Immediately after a contingency, the injections of distributed batteries could be adjusted to alleviate overloads and reduce flows below their short-term emergency rating. This ensures that the post-contingency system remains stable until the operator has redispatched the generation. Implementing this form of corrective control would allow operators to take advantage of the difference between the short- and long-term ratings of the lines and would therefore increase the available transmission capacity. This problem is formulated as a two-stage, enhanced security-constrained OPF problem, in which the first-stage optimizes the pre-contingency generation dispatch, while the second-stage minimizes the corrective actions for each contingency. Case studies based on a six-bus test system and on the RTS 96 demonstrate that the proposed method provides effective corrective actions and can guarantee operational reliability and economy.