Areas that attract ants on a regular basis can be spot treated. If it is not clear where the ants are entering, then treat a 2-4 feet wide area around the entire building. This control method is temporary and re-treatments may be necessary. Outside pesticide sprays include diazinon or chlorpyrifos sold as Dursban. There is no scientific evidence that spearmint gum, red pepper, orange peels or various herbs repel ants effectively.
Commercial baits can be effective.
Do not set baits where small children or pets can reach them. A mixture of boric acid and honey or syrup is also an attractive bait. When using any pesticide be sure to read and follow all label directions.