Bait the foragers, treat the nest, fix the water. UC IPM's guidance is that baits should be slow-acting formulations so the ants carry the product back to the nest and share it; Minnesota's extension notes baits can take weeks or months to achieve control and warns never to apply insecticides near baits, because a spray next to a bait kills the ants before they can carry it home. The direct route is finding the nest, which means tracking ants at night and listening for rustling in the wall, then treating the void; Minnesota's extension describes professionals drilling small holes, about 1/8 inch, and applying insecticidal dust into the nest area. Then the parent colony outside gets found and treated, because Penn State notes workers travel between the satellite and parent colonies and both must be destroyed. Last, the moisture: Penn State notes carpenter ants won't infest sound wood under 15 percent moisture, so the leak or the overflowing gutter that made the wood soft gets fixed and the damaged wood gets replaced.