The CPEXIF utility could copy the EXIF data from a NEF (Nikon RAW file) or a JPEG file to a JPEG file. In author's opinion there is no need for CPEXIF anymore because the development of other programs has advanced since the CPEXIF was written.
We would like to recommend the free ExifTool written by Phil Harvey as a CPEXIF replacement. ExifTool can do much much more than CPEXIF could.
run this command:
exiftool -overwrite_original -all= -TagsFromFile
Note: omit the -overwrite_original option if you do not have a backup copy of the