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, 3 2606
M <m_*******@hotm ail.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)cybers pace.org | don't, I need to know. Flames welcome.
"M" <m_*******@hotm ail.com> wrote in message
news:69******** *************** ***@posting.goo gle.com... 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(path ToCD);
}
snigger...
Your question is off topic.
Please ask in:
comp.lang.java. programmer
comp.lant.java. help
comp.os.ms-windows.program mer.win32
--
Winners dont do different things, they do things differently.
Madhur Ahuja
India
Homepage : http://madhur.netfirms.com
Email : madhur<undersco re>ahuja<at>yah oo<dot>com
"M" <m_*******@hotm ail.com> wrote in message
news:69******** *************** ***@posting.goo gle.com... 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, This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: enclume42 |
last post by:
Hello,
I am a pure Linux guy. I wrote a Java program that is going to be used
by some Windows people, and I wish the startup of the program to be as
simple as possible, namely to double-click on the icon of a BAT script
on the CDROM. The program accesses files in a directory which path is
given as an argument on the command line. The script I have now is the
following:
--- start of script ---
|
by: Hayato Iriumi |
last post by:
Hello,
I'm trying to find a way to detect whether CD-ROM was inserted into the
CD-ROM drive using C#. Does anyone have any idea how to do this? WMI? Win32
API?
TIA
|
by: timm.wong |
last post by:
Hi,
I'm trying to detect what type of media is inserted into a cdrom drive.
i.e., whether it is a dvd, audio disc, data disc etc.
Any ideas would be greatly appreciated
Tim
|
by: Paul Steele |
last post by:
I am writing a C# app that needs to periodically poll for cdroms and usb
storage device insertions. I've looked at the WMI functions but haven't
found anything all that useful. The closest is Win32_DiskDrive, but it
doesn't seem to return any information on cdrom devices. I suspect there
might be a Win32 API call, but I haven't found any info yet using Google. Is
there a way to achieve this in C#?
|
by: jujulal |
last post by:
Hi all,
How could i get CDROM Drive Letter using VB6.0 code. Where i run application that should get cdrom drive letter so, i need help.
| |
by: Ognjen Bezanov |
last post by:
Hello,
I am trying to control a CD-ROM drive using python. The code I use is
shown below.
|
by: tsjwang |
last post by:
I have a Windows XP system with a USB hub attached to it. The hub has a USB cdrom and a few USB storage devices plugged in. Occasionally the cdrom and/or the storage devices disappeared or failed to operate. Restarting the system or re-plugging the USB hub always fixed the problem.
I am using devcon.exe to detect the presence (or missing) of the devices by issuing the following command: "devcon.exe hwids *usbstor*". Sometimes the above...
|
by: awking |
last post by:
I have reformatted an older Windows98 computer, using a format command installed on a floppy. The C drive is now clear of any files as expected. The computer now recognizes the floppy A drive, but does not read the DC D drive. I can change to the D directory, but when trying D:\ dir get the message "CDR101 Not ready reading drive D", although there is a Windows 98 installation disk in Drive D
During startup I get the message "Warning - This...
|
by: Ali Rizwan |
last post by:
hello everybody
I am making an interactive software for a company, but the problem is that how can we detect the cdrom because all the data is stored in CD. Suppose there are to CD Roms in a pc how the software detect in which rom the Cd is wher the data is.
Plz Help me or i will lost my task.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |