Is disk in drive ?

This article shows how to detect if a disk is in the specified drive.

function IsDriveReady(Drive: Char): Boolean;

begin

  Result := FileExists(Drive + ':\nul');

end;

 

Share this article!

Follow us!

Find more helpful articles: