AW: getting the path of a DVD drive

Tiemo Hollmann TB toolbook at kestner.de
Tue May 8 06:17:33 EDT 2012


Hi Mark,
thanks for the helpful answer
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Mark Schonewille
> Gesendet: Dienstag, 8. Mai 2012 12:08
> An: How to use LiveCode
> Betreff: Re: getting the path of a DVD drive
> 
> Hi Tiemo,
> 
> Yes, /volumes is mandatory on all Macs. You can even use put shell("ls
> /volumes") to get all drives. /volumes/<drivename> is the right way to
> address a drive on Mac.
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> We will have room for new projects after 1 June. Contact me now and be
> first in line.
> 
> On 8 mei 2012, at 11:46, Tiemo Hollmann TB wrote:
> 
> > Hello,
> >
> > if I want to read from a CD with a known label "foo" I just check if
> "foo"
> > is in the drives to check if the CD is inserted.
> >
> > Then I add "/Volumes/" hard coded before "foo", so that I get the full
> > path "/Volumes/foo/"
> >
> >
> >
> > What I would like to know is, if this name convention "/Volumes/." is
> > mandatory on Mac or can the path name be different on other machines?
> > If so, is there another reliable way to get the path of an inserted
> CD/DVD?
> >
> > Thanks
> >
> > Tiemo
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list