|
Java™ by example!
|
|
|
How do I format a disk using Java?
You can't with pure Java, as it is very system specific. You can either create a JNI to a FormatDiskDrive library that you write yourself or you can call a system-dependent format command like "format" or the one in following example: FormatDrive.bat:
FormatDrive.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|