How do you determine what the main hard drive is?
This is what I have:
and this is pseudocode for what I want:
My problem with it is, what if C: isn't the name of a person's hard drive? F:\ for instance. And also, if the folder name specified does not exist in their drive, is it automatically created?
I figured out I need to make the directory first
String directory="C:\\JavaProject\\"; boolean success = new File(directory).mkdir();
Now how do I make the C:\ a general hard drive?
NEVERMIND I GOT IT lol.
String directory="\\Program Files\\JavaProject\\"; boolean success = new File(directory).mkdir();
Edited by Slyvr: n/a