Board index » delphi » 'No disk in drive' dialogue

'No disk in drive' dialogue

I would like to know how to prevent 'No disk in drive' dialogue from
being displayed. This dialogue is shown, for example, when using
DiskFree function.  I would use my own dialogue instead.

Any help will be appreciated.
    Thanks,
    Marko

 

Re:'No disk in drive' dialogue


Quote
Marko Curko wrote:

> I would like to know how to prevent 'No disk in drive' dialogue from
> being displayed. This dialogue is shown, for example, when using
> DiskFree function.  I would use my own dialogue instead.

> Any help will be appreciated.
>     Thanks,
>     Marko

Use the SetErrorMode Windows API function - I think the parameter you
want is SEM_FAILCRITICALERRORS.

Chris Jobson

Other Threads