Go download the Buddy API xtra, then type

--

global buddy

on startMovie
   buddy = xtra("budapi").new()
   put baDiskList()
end

--

You will get a list of the available drives. On Windows you can ask 
for the type of a drive using baDiskInfo("drivename", "type").

On the Mac I think you could use baDiskInfo("drivename", "free") to 
look for a disk with very few free bytes. That one should be the CD, 
but of course there's going to be a problem if you have a diskette 
inserted.

When browsing the files you can use baFileList("driveName", "*.jpg") 
(Win) or baFileList("driveName", "jpeg") (Mac) for finding the files 
in a directory and baFolderList for getting the folders.

Or use Director's internal getNthFilenameInFolder() function.


-A.


>Hi all,
>is there a way, to read from dir a cd name+content?
>i mean, if a cd volume is mounted on desktop, i need the cd name and 
>content in order to save those 2 info's to build a local database.
>Get crazy looking hours for something, somewhere on one of my CD's...
>it's now time to do something about this!!
>
>is there somewhere technotes on this?
>Fabrices
>
>[To remove yourself from this list, or to change to digest mode, go 
>to http://www.penworks.com/lingo-l.cgi  To post messages to the 
>list, email [EMAIL PROTECTED]  (Problems, email 
>[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
>programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to