Main Menu

HOME

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

US Job listings




   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
mouse mover with keyboard(Darkbasic)
Java supported(ASP.net)
bytes to whatever(VB)
underline text in a string(php)
beep(Java)
Search a text file(PHP)
Email example(ASP.net)
displays the browser info(Javascript)

    




Copyright © 2003 by programmershelp.co.uk