Sonic and Ultrasonic Sound Devices are sometimes used in trying to get rid of bats, again, with vastly varied results. As with trying to get rid of bats using sound, light, and other electric devices, this no doubt has to do with many varying factors.
The object with this technique, as with several other techniques, is to make the bat’s environment unpleasant for the bats, causing to simply move out of your building, preferring another, more peaceful and less disruptive location.
Some professional exterminators specialize in the use of using sonic and ultrasonic sound devices to get rid of bats. Or, you can readily buy and install these devices, yourself.
Again, remember whenever you are able to get rid of your bats, by whatever manner, be sure to seal up and “batproof” your building to prevent bats from returning, and attend to cleaning up the unsanitary bat excrement.