I use a powder from Ortho called Ant-B-Gone.
I sprinkled it in the windowsills and around the base of the concrete steps to our patio, and around the base of the townhouse (outside).
The chemical dehydrates the insect.
I had ants really bad this year.
Fortunately, they stayed in the kitchen area.
I've tried Raid, Black Flag and other ant spray, but the ants were back within hours.
And then when I tried the powder, I've had no issue with the ants.
If you have pets or small kids, I would use one of those ketchup/mustard dispensers for better control of the chemical.
That way you can get it closer to the baseboards