If you want the volume envelope of File-B to closely resemble File-A, that can be done with an envelope-follower, e.g Steve’s Dynamic-Mirror plugin …