• Post Reply Bookmark Topic Watch Topic
  • New Topic

Drive letters  RSS feed

 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Is there anyone who knows how to work out the device (CD/floppy) drive letter?

I have been told that drive letters can be change, hence for me to construct a robust program that checks CD/Floppy, i figured that I need to work out which device is which letter, then see if has a floppy/CD is there? ....

Any ideas/pointers?

Thanks in advance

Zein
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way I know is through a BIOS interrupt. You would need a C function to do that which would be invoked through JNI.
[ August 22, 2005: Message edited by: Annie Smith ]
 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Annie,

Thank you for the reply above.

To be honest, I have absolutley no idea what you have just said

Would I have to write the C function or would that come written? If so where from? What is JNI? a Java interface through which I can c/c++ code? Where can I get more information on that?

If I have to write the C fucntion then could you please tell me the environment (IDE) etc. that I would need?

Sorry so many quetion,

Thank you in advance for any pointers/cues

Regards

Zein
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for your application to simply ask the user where their CD drive is? It would avoid a whole world of trouble.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!