Mount and unmount hard drives

后端 未结 4 1742
情书的邮戳
情书的邮戳 2021-01-14 07:12

How can I mount and unmount hard drives (platform independent, so no using Runtime to execute a hard-coded command) in the Java Programming Language?

4条回答
  •  野的像风
    2021-01-14 07:48

    Think about it: Java is supposed to work on platforms where no hard drives exist, so how could there be a platform independent way of doing this?
    Besides, even if you restricted it to platforms where hard disks are available, how is Java supposed to abstract away the different approaches to RAIDs / partitions / slices etc?

    Why do you want/need to do this?

提交回复
热议问题