Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Detecting CD driver availability

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97995] Re: Detecting CD driver availability
  • From: dh <dh at metrohm.com>
  • Date: Fri, 27 Mar 2009 05:36:55 -0500 (EST)
  • References: <gqfkqc$kkk$1@smc.vnet.net>


Hi Ignacia,

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

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

Daniel



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