Transfer MSFS from C drive to another drive

Anybody any idea how to transfer just the MSFS files - excluding community and onestore folders - from C drive to the drive the Community and Onestore folders are stored on?