If you're trying to get rid of them in your house, try a product called 'Terro'.
Try this: mix one cup warm water with ½ cup sugar and 3 tablespoons borax. Soak it up with cotton balls and place them in shallow dishes near ant trails.
I use a product called No More Bugs. It has cedar oil in it and ant and other insects, to include snakes, are repelled by it.