Bright lights can indeed be an effective deterrent against bats. They don't like bright, artificial lighting. If you know where they like to enter and leave your building you can place bright spotlights there to shine 24/7. This could help discourage them from taking roost in the future.