Subscribe via Email

Enter your email address to subscribe and receive notifications of new content by email.

Write to a disk in the A drive

This requires an older operating system and compiler, Turbo C and Windows 98 for example

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

int main(void)

unsigned char buffer[512];
printf(“Insert a blank disk in the A: drive , then press any key.\n”);
/*wait for keypress*
if(abswrite(0,1,1,&buffer) != 0)
printf(“Cannot write to the A drive.\n”);
printf(“Drive A , Sector 1 written to\n”);
return 0;


FacebookTwitterGoogle+PinterestTumblrStumbleUponRedditLinkedInWhatsAppBibSonomyDeliciousDiggDiigoSina WeiboWordPressBlogger PostShare

Leave a Reply





You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>