Detecting CD driver availability
- To: mathgroup at smc.vnet.net
- Subject: [mg97932] Detecting CD driver availability
- From: Ignacio Plazeta <Ignacio.Plazeta at speednet.es>
- Date: Thu, 26 Mar 2009 05:19:49 -0500 (EST)
Dear Friends
I want Mathematica check the DVD presence into the CD-ROM driver and
execute myFunction[] when it become available, so I try something like
SetDirectory[NotebookDirectory[]];
Off[SetDirectory::"cdir"];
Print["Start"];
While[SetDirectory["d:\\"] == $Failed, Pause[1]];
Print["Stop"];
but it's an unsuccessful trick, because it makes the Retry, Abort,
Continue message box rise, invoking the user's act, just exactly what I
want to avoid. Any way out?
Thanks you all for the gentle and skillful answers I always get.
Best regards.
Ignacio Plazeta