Since it appears it's only the link paths that vary, you could adapt the macro attached to
https://www.msofficeforums.com/word/...nal-files.html. I suspect the adaptation required would be little more than inserting the macro into the template your documents are created from (rather than into the documents themselves) and changing its name, so it doesn't run automatically when those documents are opened.