MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Detecting CD driver availability

Hi Ignacia,

if I understand correctly, you want to test the existence of a 

directory. This can be done using: "DirectoryQ".


Ignacio Plazeta wrote:

>    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


  • Prev by Date: Re: Re: UNDO and Mathematica - how useless is it?
  • Next by Date: Looking for help with "Reduce" command for use with my Calculus course.
  • Previous by thread: Detecting CD driver availability
  • Next by thread: Re: Detecting CD driver availability