The script should move the entire text of .doc file from source file to target file. Source is only one, target files can be many. Everything is in .doc extension. To which files should be the lines (whole text) moved depends on names of target files.
The second script should compare .txt with .cfg (both can opened in notepad) and shows the duplicates found in new .txt file.