如何获取Windows的磁盘驱动器列表和分区信息? windows底下实现有现成的API调用, java说是与底层无关,就不知它如何实现了帮你顶. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看好了,j private void loadDrivers(JComboBox cmbBox){ File currentPath=new File("."); File[] drivers=currentPath.listRoots(); for(int i=0;i<drivers.length-1;i++) { comBox.addItem(driver[i].toString()); } String path=currentPath.getAbsolutePath(); if(path.indexOf(cmbBox.getItemAt(i).toString().trim())>=0{} 1.不知道2.分区信息?linux:open(deviceName, O_RDWR)windows:不知道,但是应该差不多。 购物系统如何实现? 自己做了个聊天工具,如何导出jar, 客户端和服务器一起导出? 求core java的电子版,中文版的啊 ... 日期 帮忙看下这个程序 来看看啊,啥毛病? 关于 throws java.io.IOException Java2连接数据库~急!!! 软件下载量3天突破180,散分 如何设定当用户输入手机号时触发运行? 哪里有java的帮助下载 西安的JAVA人快来啊!!
private void loadDrivers(JComboBox cmbBox)
{
File currentPath=new File(".");
File[] drivers=currentPath.listRoots();
for(int i=0;i<drivers.length-1;i++)
{
comBox.addItem(driver[i].toString());
}
String path=currentPath.getAbsolutePath();
if(path.indexOf(cmbBox.getItemAt(i).toString().trim())>=0
{}
linux:
open(deviceName, O_RDWR)
windows:不知道,但是应该差不多。