If you are treating for Carpenter Ants, you will spray around the perimeter of the house as you described, 1-2 ft up the foundation and 1-2 ft out onto the ground, around door frames, window frames, places where cables, pipes or wires go through the wall and any other crack or crevice where the ants can gain entry into your home. If you are treating for termites, you will need to make a 6 inch x 6 inch trench right up against the foundation and pour in 4 gallons of diluted
Termidor SC for every 10 ft of trench. We recommend that you read our article
How To Do a Termite Treatment to learn how to deal with porches, decks and driveways when performing a termite treatment