It's too bad there's no easy way to make resistance work for us, instead of against us. Like finding something else for these to infect, having them get resistance to the nasty bug, then using the same method to get rid of it.
Many of the antibiotics are made naturally by fungus to combat bacteria. Once discovered, we just create a synthetic method to prepare them, and perhaps improve the effectiveness and reduce the collateral effects. The canonical example is penicillin http://en.wikipedia.org/wiki/Penicillin#History