Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

checking if a CDRW is available?


I need to know if there is a CDRW available in current machine for making backups



0
faustomen
Asked:
faustomen
1 Solution
 
esoftbgCommented:
I have a Delphi code that extracts Model number of devices (CDD and HDD)....
Then if Model number contains 'CDRW' or 'CD-RW' decides that this device is a CDRW....
But can not be determined the Root-Directory of the device ('D:\' or 'E:\' or ....)
If you are interested I can provide you the code....

emil
0
 
Wim ten BrinkCommented:
Consider using IMAPI... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/imapi_reference.asp
I don't know anything about it but from this MSDN page you might get more usable information.
0
 
Lukasz LachCommented:
That can be done easier.
You can use DeviceIOControl with IOCTL_CDROM_GET_CONFIGURATION parameter and then extract information from FEATURE_NUMBER record.
0
 
Lukasz LachCommented:
Just found out there is also a solutions by using WMI calls. That would make you to find RW string in device's name.
See http://www.online-admin.com/twmistorageinfo.html for examples of using WMI and getting CD-ROM's info...
0
 
EddieShipmanCommented:
Download XPBurn and use it's IMAPI translation. It will tell you.

http://www.bayden.com/delphi/cdburner.htm
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now