Topic: 请问如何分辨CD-ROM? |
Print this page |
1.请问如何分辨CD-ROM? | Copy to clipboard |
Posted by: Aron Posted on: 2004-09-25 18:17 请问用 File[] fplist = File.listRoots(); 这个可以取得目前系统所有的分割区代号 但如何才能分辨出那个是CD-ROM呢?谢谢 |
2.Re:请问如何分辨CD-ROM? [Re: Aron] | Copy to clipboard |
Posted by: littledeer1974 Posted on: 2004-11-13 11:48 if you use Java I dont think you can get the Drive ID DIRECTLY ,so it will be a very difficult question |
3.Re:请问如何分辨CD-ROM? [Re: Aron] | Copy to clipboard |
Posted by: caleb Posted on: 2004-11-13 13:21 Detect CD-ROM should be a platform-sepefic question (The filesystem is different from *nix and windows). My suggestion is to write a c/c++ program which do the cd-rom detection, and let your java program call it through JNI. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |