-
detect cdrom status
[Originally posted by AhBoon]
how do i detect whether my cdrom is opened or closed?? lets say my coding is
if cdrom status is opened then
ÿ close my cdrom
else
ÿ open my cdrom
endif
how m i going to detect "cdrom status"??ÿ thanks for help! ^_^
-
Re:detect cdrom status
[Originally posted by Ryan]
i dont think this is possible. you can tell whether a cd is in the drive or not but not if the door is closed or open. You can tell whether a disk is in the drive or not and by subclassing tell when the door is opened or closed. but there is no way to tell what state the cd drive door is in when your program starts. A workaround might be too close all the drive doors when your program starts so you know they are all closed and then detect when the drives are opened and closed. This is fairly complex code if you want it email me and i'll send it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks