?
Solved

Disk Check Question

Posted on 2002-06-11
2
Medium Priority
?
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
pjknibbs earned 150 total points
ID: 7070222
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
ID: 9214731
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

800 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