|
Description
This shows all the disk
drives present on the system . This
is for DOS based systems.
Code
#include <stdio.h>
#include <dir.h>
void main(void)
{
int drives;
drives = setdisk(3);
printf("The number of available
drives is %d\n", drives);
}
Information
tested using Borland
Turbo C
Download
selectdrive1.txt
|