Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Disk drive ready
 

 

Description

Someone asked how could they check whether the floppy disk was ready in DOS . Here is how to do this in DOS .

Code

#include <stdio.h>
#include <bios.h>

void main(void)
{
char buffer[8192];

if (biosdisk(2, 0, 1, 1, 1, 1, buffer))
printf("Error accessing drive\n");
else
printf("Drive ready\n");
}

Information

tested using Turbo C

 

 
 

 

Download

floppyready.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
File size function(PHP)
A text effect(VB)
convert an IP address to a hostname(C Sharp)
Octal, hex and decimal(C++)
Status bar text mouseover(Javascript)
Search an array(C)
Count words in a string(VB.net)
Neon text(Javascript)

    




Copyright © 2003 by programmershelp.co.uk