If your child has a pinworm infection, the doctor will recommend an over-the-counter or prescription antiworm medicine. This is given in one dose, then repeated in 2 weeks. The doctor may decide to ...