Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for floppy in drive

Status
Not open for further replies.

JWilsonny

Programmer
May 8, 2001
46
US
Is there a quick and dirty way to test for a floppy in the floppy drive without generating an foxpro error (or win 98 sys I/O error) if there is no floppy in the drive? Thanks. FP26.
 
I have a binary file "isdiskin" which does what you want.
Search the web for it and if you can't find it drop me a line at tilltek@hotmail.com and I'll Email it to you.
Works every time.
 
I've had good luck in FoxPro for DOS 2.6 with a library file called DRIVEOK.PLB. If you can't find it, give me a holler. Jerry@r67.net

 
We use ZDrvStat. It's public domain and will let you check for the existence of a drive, the current status (RO, Writable) and whether it has a disk in it. Do a search for zdrvstat. If you can't find it, I can send it to you.
 
ZDrvStat (above) works great! Even handles write-protected disks, which my DriveOK (above-above) doesn't. I'm sold -- and thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top