Solved

Disk Check Question

Posted on 2002-06-11
2
127 Views
Last Modified: 2012-05-04
Guys...

I am writing an application, where I have to check if a floppy disk drive is ready with a disk in it. What is the method I should use?

I would consider any C/Java/Ada code snippets to see how this can be done.

Thanks
prain
0
Comment
Question by:prain
2 Comments
 
LVL 12

Accepted Solution

by:
pjknibbs earned 50 total points
Comment Utility
Call SetErrorMode(SEM_FAILCRITICALERRORS) to prevent Windows displaying the "Please insert a disk in drive A:" prompt, then attempt to scan the directory of the A: drive--if the scan fails, assume there's no floppy present (or the floppy present is unformatted). Remember to reset the error mode by using SetErrorMode(0) after doing this.
0
 
LVL 1

Expert Comment

by:Piri
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept pjknibbs comment as aswner
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Piri
EE Cleanup Volunteer
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello to users to the new age of computers. There are so many products to choose from nowadays that you maybe confused to understand which product is the correct product for you. Let me explain briefly what should be the idea product for your best n…
In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now