By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,589 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,589 IT Pros & Developers. It's quick & easy.

How to detect cdrom drive...

P: n/a
M
I searched the FAQ for this NG and found no answers to my question...

I'm writing an application in Java (I'm not a C programmer), however I
need to be able to detect WHICH drive (d:\, e:\ etc...) on a win2k
machine the CDROM drive is on. I assume that C or C++ can do this. The
C/C++ code will then be wrapped in a JNI layer to be used by the java
code.

Basically, all I want the C code to do is return a letter
corresponding to the drive the CDROM is on. Is there any code
available that does this?

thanks,
Nov 14 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
M <m_*******@hotmail.com> spoke thus:
I searched the FAQ for this NG and found no answers to my question...
How about the welcome message?

http://www.ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html
I'm writing an application in Java (I'm not a C programmer), however I
need to be able to detect WHICH drive (d:\, e:\ etc...) on a win2k
machine the CDROM drive is on. I assume that C or C++ can do this. The

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not without extensions specific to your system, which are not
discussed on this newsgroup.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #2

P: n/a

"M" <m_*******@hotmail.com> wrote in message
news:69**************************@posting.google.c om...
I searched the FAQ for this NG and found no answers to my question...

I'm writing an application in Java (I'm not a C programmer), however I
need to be able to detect WHICH drive (d:\, e:\ etc...) on a win2k
machine the CDROM drive is on. I assume that C or C++ can do this. The
C/C++ code will then be wrapped in a JNI layer to be used by the java
code.

Basically, all I want the C code to do is return a letter
corresponding to the drive the CDROM is on. Is there any code
available that does this?

thanks,


Maybe if you do something like this:

#include "stdio"

void main (void)
{
char *pathToCD;
if (pathToCD)
readFromCD(pathToCD);
}

snigger...
Nov 14 '05 #3

P: n/a
Your question is off topic.
Please ask in:
comp.lang.java.programmer
comp.lant.java.help
comp.os.ms-windows.programmer.win32

--
Winners dont do different things, they do things differently.

Madhur Ahuja
India

Homepage : http://madhur.netfirms.com
Email : madhur<underscore>ahuja<at>yahoo<dot>com

"M" <m_*******@hotmail.com> wrote in message
news:69**************************@posting.google.c om...
I searched the FAQ for this NG and found no answers to my question...

I'm writing an application in Java (I'm not a C programmer), however I
need to be able to detect WHICH drive (d:\, e:\ etc...) on a win2k
machine the CDROM drive is on. I assume that C or C++ can do this. The
C/C++ code will then be wrapped in a JNI layer to be used by the java
code.

Basically, all I want the C code to do is return a letter
corresponding to the drive the CDROM is on. Is there any code
available that does this?

thanks,



Nov 14 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.