Yes, there is a better solution. Get a cat !!
I looked at a few articles about Ultrasonic Pest Control and it looks like the effectiveness of this method is still not clear.
http://en.wikipedia.org/wiki/Electronic_pest_control
http://www.victorpest.com/advice/all...-of-repellents
Bookmarks