Ey just spray the small cracks or the line that they come from. Doing that disturbs the trail they set up. They use some sort of chemicals to line that path so during the time they get food or what not and something come in the midst of the path they have that chemical to find their way back/or to the food. Pretty crazy stuff those ants do.