If you can follow the trail and find out where they’re entering the house, you can just use caulk and plug up the hole where they’re coming in.
If you can’t find where they’re coming in, I use a product called Grant’s. It works like the stuff @rooeytoo mentions, that is, they carry the bait back home and it kills the entire colony. I find that this product works so well that it will get rid of ants for 6 months or more. The Terro ant killer does not work on the kind of ants that we have around here. They simply walk around the product; somehow they are not attracted to it.
Yes, ammonia, Windex, borax and baking soda also work but only for a short while. The borax and baking soda get vacuumed up the next time I run the vacuum cleaner, so they have to be reapplied.
Another product that works great is diatomaceous earth. You find this in animal feed stores. The advantage is that it is non-toxic to humans and pets, and is “envrionmentally friendly”. But, like the baking soda, it is a powder and has to be reapplied if it gets vacuumed up.