Any efficient way to find the drive letter of the main hard drive with operating system? This program is platform dependent Windows OS.
Printable View
Any efficient way to find the drive letter of the main hard drive with operating system? This program is platform dependent Windows OS.
#include <stdio.h>
int getdrive(void);
it returns an integer: 1 for A, 2 for B, 3 for C, 4 for D ... it only works in windows/dos. drives dont exist in UNIX ....