How to move the Firefox profile folder to another partition

When we run Firefox the first run it creates a folder with an alphanumeric name containing all profiles.

Its path is:

C:\Users\UserName\AppData\Roaming\Mozilla\Firefox\Profiles\

This folder contains all your bookmarks, extensions installed, everything but everything the profile. Doing a backup and restore of this folder you can save and restore all that you have done with Firefox; In the light of what has been explained before you can understand then how useful can be move this folder to another location, for example to another partition; This is possible thanks to profiles.ini file that is in the path:

C:\Users\NomeUtente\AppData\Roaming\Mozilla\Firefox\

The file profiles.ini tells Firefox in which path is the profile to start. The structure of this file is:

[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=Profiles/jq8la4ck.default

we can indicate to Firefox that the profile is no longer in the default path by the voice IsRelative and by the voice Path we can move our profile folder, for example in this way:

[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=0
Path=D:\Documents\Firefox\jq8la4ck.default