vba – Make word hyperlinks independent of drive letter

I have a word document with lots of hyperlinks to different files on my PC. The problem occured when some of those files were relocated. Hyperlinks stopped working. I decided to place all files in a separate folder called “files” in the same directory as my word document.

But again one problem came. My drive became full and i had to change location of my word document.

Again my hyperlinks stopped working because drive letter changed.

Please suggest how this can be fixed? I want my links to be immune to any change in drive letter. I will maintain the directory structure but drive letter may change like suppose i put my document in c: like c:test.doc and all files in c:files but for some reason if i change the drive letter like f:test.doc and f:files in this case the links should work.

How this can be achieved?”