How can detect that cdrom drive were opened and closed?

How can detect that cdrom drive were opened and closed?

I'm sure there are more elegant and complicated ways to accomplish this using Windows SDK function calls to kernel32.dll or something extravagant like that, but if you want the bare-bones easy way to check if the CD-ROM tray is currently opened, then simply use System Exec to query the CD-ROM drive from the command line. One example of this is shown below.
Use the command line function cmd /c d:, where d: is your CD-ROM drive. If the Standard Error output from System Exec.vi is "The device is not ready." followed by a carraige return and line feed, then voila, your CD-ROM drive is open. If not, it's closed. Anyone have a better idea? I'm sure one exists...
Message Edited by Jarrod S. on 02-16-2006 12:23 PM
Jarrod S.
National Instruments
Attachments:
CDROM_Check.JPG ‏22 KB

Similar Messages

  • How can I know which applications were opened by someone else who used my computer?

    I'd like to know how to interpret the logs that I get in Console to figure out which applications and which files were opened by someone who used my computer. Thanks for any help you might be able to offer!

    If you go to Settings > General > About > Diagnostics & Usage > Diagnositic & Usage Data you can see what was used if it returns an error of any kind.

  • How can I get Firefox to "pinch open and close"

    The zoom feature where you spread or pinch together two features on the Mac trackpad used to work on the last version of Ff, and I used it all the time to zoom in when text was too small. It's not working with this new version and I'm really disappointed. Anyone know if there's a way to change settings or something so it will work?

    Some gestures have been removed in Firefox 4.
    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    browser.gesture.pinch.in cmd_fullZoomReduce
    browser.gesture.pinch.in.shift cmd_fullZoomReset
    browser.gesture.pinch.out cmd_fullZoomEnlarge
    browser.gesture.pinch.out.shift cmd_fullZoomReset
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    * http://kb.mozillazine.org/about%3Aconfig

  • How can I get my mail to open and close it stopped working

    Help! I was able to open and view email last night. I played a new game for several hours and when I went to shut down my computer and it wouldn't allow-it said the mail program was preventing. I tried to open the mail and now it won't open. So I can't turn off my computer-I just close the lid and it goes to sleep. How do I handle this.

    Hi Matt,
    thanks for replying to my question about getting mail directly into my mailbox.I don't know what went wrong but I only seem to have received the very last part of your reply which refers to Push.Would you be very kind and try to send it again.
    Many thanks Judith

  • How can I get my mail to open and read documents in Firefox after upgrading to Sony Vaio Gatew 2.4.0

    I upgraded my Sony Vaio Gate software to 2.4.0.06210 on Wednesday night. Afterwards, my mail functionality is not working with Firefox. It will work with Internet Explorer, but not with Firefox when I try to do the following such as clicking on check mail, open inbox or trying to open any views or documents.
    It will not open, but only states trying to load and indicates the following:unknown property text flow - declaration dropped and it is referencing my mail server in trying to read data from it. However, if I right click and clikd on a new tab it will read in the data and then if i open a new tab again it will open the document. It's not able to stack the data and hold it properly now for some reason. What do I need to do to get it to work with Firefox? Thanks. edit
    Error: uncaught exception: [Exception... "Component returned failure code: 0x805e0006 [nsIXMLHttpRequest.open]" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: http://mail.yimg.com/d/combo?/mg/12_0_0/js/yui_utils.js&/mg/12_0_0/js/core.js&bc/bc_2.0.4.js&/mg/12_0_0/js/darla.js&/mg/12_0_0/js/async.js&/ult/ylc_1.9.js&/mg/12_0_0/js/imboot.js&/gx/t12a/js/yui_loader_mg/ba87c64b1f20e3e7898b0dc28b2173a6_1.js&/gx/t12a/js/combo/init/us/5d97332c6924d7b42d469dc77113ac15_1.js&/gx/t12a/js/combo/init/us/ycw.v5b.js :: <TOP_LEVEL> :: line 3" data: no]

    Hi Rick,
    do you mean I could get a direct download link to After Effects 11.0.4? So I don't have to run this patch that never seems to work?
    Hard to believe all the Adobe tech support guys I've spoken to wouldn't have mentioned that, I've spent hours and hours on the phone already....
    I will try!
    thank you

  • How can I make my short quicktime open and play online in a

    Hello,
    Whatever size my quicktime file is when I post the .mov online it always shows up playing from a browser (Safari, Explorer or Firefox) in a small window.
    If like it to play in a large size....
    I know some trailers on Apple.com do this...
    Any suggestions would be greatly appreciated!
    Thank you.

    QuickTime movies do not have to play back in a browser window. The option (and burden) is on the html author. With clever use of special html "tags" the author can present the file using the QuickTime Player application (target="quicktimeplayer") or at a size other than the movies actual dimensions (scale="tofit"). More info about tags here:
    http://docs.info.apple.com/article.html?artnum=61011
    As a general rule the larger the dimensions of the movie the larger the file size. Larger files take longer to download and may require the viewer to be very patient or have high speed Internet connection (less than half of the viewers).
    http://homepage.mac.com/kkirkster/64
    One of my (only 220KB's) QuickTime "movies" that uses these special tags to play "full screen". Take a look at the html code to see how it's done.

  • How to stop the noisy screen when opening and closing?

    Whenever I open, close or adjust the angle of my laptop screen it makes an annoying creek and click sound. The sound usually varies whether its loud or faint.
    I think it's friction or something. Can I lube it up some way?
    Any suggestions?
    Thanks.
    Dorian

    Try a RadTech Glide Kit…
    http://www.radtech.us/Products/Glides.aspx

  • How can I get the Drives for Satellite A200-13R?

    hi everybody,,
    I have (Satellite A200-13R) labtop, It came with windows VISTA, but I didn't like it.
    I installed Windows XP SP2.
    But I lost the drives
    How can I got the drives?
    Regards and Thankx.............

    Hi there,
    could you please explain a little bit more detailed and better what you mean?? Which drives? The DVD-ROM or the HDD or what?
    Please, give a better explanation so people can help you better.
    Greets

  • Report on Opening and Closing WIP

    Hi Gurus,
    Please tell me how can we get any report on Opening or closing WIP on daily basis.
    Please tell me asap.
    Thank You

    Hi,
    Please check the following reports. It may help you
    S_ALR_87013151 - Actual/WIP: Cumulative
    S_ALR_87013152 - Actual/WIP: Periodic
    S_ALR_87013092 - Work in Process
    Regards,
    Jigar

  • Opening and closing stock balances

    Hi
    What report can i use to show the opening and closing stock balances of materials for the last 12 months.
    Thanks
    Vinesh

    You can view the report in MMBE.
    other than this you can try
    MBEWH and MARDH
    Also follow the link:
    Re: op.& closing stock detail in MM
    Thanks
    Nisha

  • Can somebody explain to me how I can detect that an internet connection exists (VB)?

    Can somebody explain to me how I can detect that an internet connection exists (VB)?
    Peter Goossens

    There is no reliable way. Better test whether you can go to where you want to go. And be prepared to support proxies, even the complex ones that require authentication. 
    System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable reports your local connectivity regardless of whether one of your connected networks has Internet access.
    Microsoft's Network Awareness API (the one used in control panel\network and sharing center) use a connection test to a web site setup by Microsoft. But your customers could be behind cooperative firewalls that make this test unusable even when Internet
    access is available though other means (e.g. via a local proxy server). If you want to connect to your own web site, then you can skip that and just connect to your web site instead. Even if you were able to connect to Microsoft's web site there is no guarantee
    your web site would be accessible in the same network.
    Visual C++ MVP

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • I bought and downloaded some music off of the internet on my laptop that uses Windows 8. How can I get my music to open automatically in my itunes instead of opening in the music app?

    I bought and downloaded some music off of the internet on my laptop that uses Windows 8. How can I get my music to open automatically in my itunes instead of opening in the music app (the orange sqaure with headphones)? Currently I have had to often downloads and sift through all my files to find the ones I want to open into itunes, and it's irritating.

    Media is only where the user puts it.
    Installing iTunes does not and has never caused media to magically appear on the computer.
    Copy the ENTIRE iTunes folder from the old computer (or backup of the old computer) to the new computer.

  • When I right click on a link "Open link in new tab" since a few days, it "jumps over" the tab to the right and opens in the tab next to that. How can I change this back to opening in the tab next to the page from which I opened as it used to be?

    When I right click on a link "Open link in new tab" since a few days, it "jumps over" the tab to the right and opens in the tab next to that. How can I change this back to opening in the tab next to the page from which I opened as it used to be?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • I'm trying to install an update to itunes that downloaded but can't complete installation as its trying to install onto D: drive. I don't have a D drive and i'm not given option of selecting the drive to install on. How can i select the drive that i want

    I'm trying to install itunes but can't complete installation as its trying to install onto F: drive. I don't have a F drive and I'm not given option of selecting the drive to install on. How can I select the drive that i want to install on?

    Hi,
    How do you connect the printer to the XP machine ? If USB, you need to make that machine as a Print server. Please try this:
       http://techtips.salon.com/make-windows-computer-pr​int-server-11914.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • How do i eject a cd from the macbook pro?

    i was importing it to itunes and realized i had already done so.  so i stopped importing.  But how do i eject the cd? I dont see an option in the toolbar.

  • I can't open itunes after installation, says"itunes.exe-application error"

    first time, I installed ipod and itunes from the cd, it failed. then I downloaded from the website and reinstalled, it didn't work, either. afterward I have tried many times to delete,restart and reinstall, it just didn't work at all>_< every time i

  • Overlay a still image over video.

    I am editing a lot of video and have a need to lay an image over the video, like down the left column or even across the bottom. What I am doing is editing footage of a poker game we filmed and I want to be able to display the players' hole cards lik

  • My screen is dark

    The Macbook made a funny sound and now the screen is dark. Help!

  • How to map CMP field to an Oracle XMLType?

    How can we map a WLS700 EJB2.0 CMP field to an Oracle XMLType? Is there some special configuration needed in the deployment descriptors? Thanx, Nico