If I have a java path such as "/users/james/.myapp/" can I figure out the physical drive name (ie. \\.\PHYSICALDRIVE0
) using just java apis?
I thought this might be possible because you can reference a physical drive in java:
new RandomAccessFile("\\\\.\\PhysicalDrive0", "r");