How to Check drive ready status?
Answer / Vipin Prabhakar Singh
To check the drive ready status in Delphi, you can use the DiskChange event of TDiskDrive component. Here's an example:
```delphi
var
Drive : TDiskDrive;
begin
Drive := TDiskDrive.Create(Self); // Create a new disk drive object
Drive.Drive := 'C'; // Set the target drive (e.g., C:)
Drive.OnDiskChange := DriveChangeEvent; // Assign an event handler for DiskChange event
end;
| Is This Answer Correct ? | 0 Yes | 0 No |
How to Use Variables & For Loops in Delphi?
How to Extract RGB components of a color?
How to Create a Worker Thread for Background Processing ?
What is the diff between IT Company & other companies?.
How is the memory used within an object in delphi?
How to use the TUpdateSQLProvider.OnUpdateRecord method ?
Why you want to join IBM only not others like, TCS Infosys, Satyam & Wipro Etc. please do'nt give general answers?.
How to Use FindFirst to search for files?
How to Use GetTimeZoneInformation() function?
How to DetermineDrive Type ?
How to insert contents of a file at current position in TMemo?
How to assign a Null value to a numeric field in a table?