View Full Version : Detect DVD in drive?
09-11-2006, 08:00 AM
Anyone know if there is a way to detect if there is a DVD in the drive? I don't want to autoplay (since it might be in there to be ripped, not played) but I do want to use that state to show a "Play DVD" icon on the screen if there is one in there and hide it if not.
I think Girder has a way to do this so maybe I could reinstall my old copy of Girder and do it that way?
In the 2.0 world I'd probably look at a "Popup" template when a DVD is detected to present the option if that is possible.
Here's how Windows tells you about it:
But, I don't think we can hook into it unless Dean exposes some sort of event, or someone wrote some kind of "service" and matching "driver".
09-11-2006, 10:37 AM
There's no way to do that currently. The only way to really do this is to watch for media change events, which can only be done on the local machine where the drive is. So this brings in complications that you'd either have to run CQCServer and a driver locally on any machine you want to do this on, or there'd have to be special support for it built into the interface viewer in some way.
09-11-2006, 03:04 PM
Any chance you have a command line application that can set a driver field? I found that AnyDVD will run a command line application upon a DVD being inserted/removed which would be great if I could use the Variables driver and set a variable from the command line True or False.
In the long term, a WMI driver like Cinemar has would be a nice wish list item.
09-11-2006, 03:44 PM
09-11-2006, 04:13 PM
I was referring to Windows Management Instrumentation:
WMI allows applications to monitor and control managed resources throughout the network. Resources include hard drives, file systems, operating system settings, processes, services, shares, registry settings, networking components, event logs, users, and groups.
Windows Management Instrumentation (WMI) is the Microsoft implementation of Web-Based Enterprise Management (WBEM), which is an industry initiative to develop a standard technology for accessing management information in an enterprise environment.
WMI uses the Common Information Model (CIM) industry standard to represent systems, applications, networks, devices, and other managed components. You can use WMI to automate administrative tasks in an enterprise environment.
09-11-2006, 04:43 PM
Oh, that WMI. Too many acronyms, too little memory storage.
vBulletin v3.5.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.