473,395 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Computer's drives

Hi all, here's my problem.
I've got to collect some information about the drives in a computer.
With the hd I've no problems, I use the GetDriveType Api. But how can I
know if a cd-rom drive is a writer, a dvd or somthing else
(GetDriveType tells me they are all cd-drives).
In the end, how can I know if a removable drives is a floppy, a usb pen
or something else?
Thanks

Aug 30 '05 #1
3 1290
Galbu wrote:
Hi all, here's my problem.
I've got to collect some information about the drives in a computer.

[snip]

Pretty sure you will need to ask this in a newsgroup dedicated
to your platform or compiler. The standard C++ language does not
know from API calls to determine storage type.

Since you didn't even say what platform you are working on, it
can't be that important, so we get to guess. My guess is, the
Timex Sinclair Z80 based computer does not support hard disks.
Socks

Aug 30 '05 #2
I work on windows xp, using MSVC++

Aug 31 '05 #3
Then go to comp.os.ms-windows.programmer and look for the subgroup that
will most likely have a decent answer for your question.

Aug 31 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bolin | last post by:
I was wondering how to get some system info from a PC running Windows in python. I am especially interested in knowing how much RAM the computer has, how much diskspace is still left, and what jobs...
2
by: Ben | last post by:
Hi, Thanks for reading this post... I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user...
9
by: HongThuyCanada | last post by:
1) I want to get the list of string which contains all the drives in my computer. 2) I want to get the current working directory. What is the source code look like in C++. Thnx
8
by: Steve Marshall | last post by:
Hi All, Is it possible to set the InitialDirectory property of an OpenFileDialog so it will open at the "My Computer" level? I want it to open showing all the available drives. If so, what do...
3
by: Sabine | last post by:
Hi there, I would need your help again. I am using Dev Avish's API function "Search for a file" http://www.mvps.org/access/api/api0006.htm to find a file on my computer which works well. As...
0
by: Tim Golden | last post by:
Ohad Frand wrote: You can do this with WMI under Windows: <code> import wmi c = wmi.WMI () for i in c.Win32_LogicalDisk (): print i.Caption
0
by: Winder | last post by:
Computer Data Recovery Help 24/7 Data recovering tools and services is our focus. We will recover your data in a cost effective and efficient manner. We recover all operating systems and media....
2
by: Lidia | last post by:
Input: A computer name on the internal network Out: Disk space total and remaining on all drives.
2
by: Bonzol | last post by:
Hey all. I need to make the webbrowser control in a windows application open up 'My Computer' on a command, so the user can view all their own drives. It can open up C:/ etc. and you can also...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.