如何使用java找出操作系统驱动器?

2022-01-11 00:00:00 operating-system java

我们如何在 java 中编写代码来找出安装操作系统的驱动器号?

How can we code in java to find out the drive letter on which operating system is installed ?

推荐答案

你可以从 Environment 中获取:

You can get that from the Environment:

System.getenv("SystemDrive");

相关文章