This paper deals with iterative learning control (ILC) design to solve the trajectory tracking problem for rigid robot manipulators subject to external disturbances, and performing repetitive tasks. A D-type ILC is presented with an initial condition algorithm, which gives the initial state value in each iteration automatically. Thus, the resetting condition (the initial state error is equal to zero) is not required. The λ-norm is adopted as the topological measure in our proof of the asymptotic stability of this control scheme, over the whole finite time-interval, when the iteration number tends to infinity. Simulation results are presented to illustrate the effectiveness of the proposed control scheme.