I'm creating an application that will run from an external hard drive. I've been researching but I have not found a way without using a lot of gambiarra to find the partition where that HD was mounted.
My goal is to have a File object that has the path to the root of the partition on which the HD is mounted. For example: if the HD is mounted on "E: \" (in case the OS is Windows), my File object should have this path.
If anyone knows anything that can help me, please respond.