How to Check drive ready status?



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

Post New Answer

More Delphi Interview Questions

How to Use Variables & For Loops in Delphi?

1 Answers   Bosch,


How to Extract RGB components of a color?

1 Answers  


How to Create a Worker Thread for Background Processing ?

1 Answers  


What is the diff between IT Company & other companies?.

1 Answers   IBM,


How is the memory used within an object in delphi?

1 Answers  


How to use the TUpdateSQLProvider.OnUpdateRecord method ?

1 Answers  


Why you want to join IBM only not others like, TCS Infosys, Satyam & Wipro Etc. please do'nt give general answers?.

14 Answers   IBM,


How to Use FindFirst to search for files?

1 Answers  


How to Use GetTimeZoneInformation() function?

1 Answers  


How to DetermineDrive Type ?

1 Answers  


How to insert contents of a file at current position in TMemo?

1 Answers  


How to assign a Null value to a numeric field in a table?

1 Answers  


Categories