MathGroup Archive 2009

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

Search the Archive

Re: Detecting CD driver availability


Hi !

Unfortunately, it dosn't work. Here what happens on a PC
running Windows XP Pro SP2 and Mathematica 7.0.0.

We start having a void CD driver:

   DirectoryQ["d:\\"]
   True (why ??)

   SetDirectory["d:\\"]
   SetDirectory::cdir: Cannot set current directory to d:\. >>
   $Failed

Now I put a DVD into driver:

   SetDirectory["d:\\"]
   d:\
   ResetDirectory[]
   C:\Docs

The DVD is now removed so I get

   SetDirectory["d:\\"]
   SetDirectory::cdir: Cannot set current directory to d:\. >>
   $Failed

and also the Abort, Retry, Cancel dialogs pops up; please note
that during the first test it didn't. What I need is managing the
absence of optical media without the human intervention on the dialogue box.

Best regards.
Ignacio


  • Prev by Date: Re: Solve problem
  • Next by Date: Re: finding all definitions matching a pattern
  • Previous by thread: Re: Detecting CD driver availability
  • Next by thread: Re: Detecting CD driver availability