This link will give you some ideas.
http://www.delphi3000.com/articles/article_297.asp
To suppress the blue screen you need to call
ErrorMode := SetErrorMode(SEM_FailCriticalErrors);
Do your disk test then restore mode
SetErrorMode(ErrorMode);
another article
http://www.delphi3000.com/articles/article_963.asp
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Luke Pascoe
Sent: Wednesday, January 31, 2001 11:16 AM
To: Multiple recipients of list delphi
Subject: [DUG]: CD Rom problems
Ive got an app that runs off a CD but sometimes requires the Windows
installation CD. When the user swaps CD's the program does it's thing and
reads from the windows CD, but when it's done with the windows CD it pops up
a blue screen saying "wrong disk in drive".
How do I turn this into a nice "please re-insert CD" dialog?
Thanks.
--
Luke Pascoe
Ex-Programming
Ex-Ihug
[EMAIL PROTECTED]
0800 GET IHUG ext.9764
Give a man a fish and you feed him for a day.
Teach him to use the Net and he won't bother you for weeks.
--
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"