I need access a file path, but a part of the path is different on each PC.

Mozilla creates a random profile name for each PC it is installed on.

I can get most of the path through environment variables. I need to access the files inside of the default profile, but can't since I'm not sure how to access it.

Anyone have any ideas?

Here's an example of the file path:

'C:\Users\%USERPROFILE%\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default'

The only thing that stays the same with the profile name, is the '.default' part.

Thanks