Extension cords are rated for indoor or outdoor use. Indoor extension cords should never be used outside. Use only outdoor extension cords, which are designed to be weatherproof and to extend for long distances. If you need power for the same device on a regular basis, consider looking for a more permanent solution.