correct way to save preferences and key commands?

So I’m wondering what the correct way to export/save preferences and key commands is, in order to use them on another system or in case of a system reinstall, etc. I thought I had preserved these properly, but I don’t see how to import them again. The files I kept had the name I had saved my preferences and key commands configurations under, and these files have an .xml extension. But I haven’t got a clue as to how to reimport them. The location they were in before I reinstalled my system doesn’t seem to exist anymore (user\appdata\roaming…)

Any advice would be much appreciated!