getting the Real name of CDs from RR

Ken Ray kray at sonsothunder.com
Wed Dec 29 22:38:51 EST 2004


On 12/29/04 9:10 PM, "Alejandro Tejada" <capellan2000 at yahoo.com> wrote:

> How could i get the real name of a CD from
> RR in Windows?

You could switch to that drive and get a "dir" under shell(); the first line
says "Volume in drive <letter> is <name>", and you can parse it from that.

Something like this:

on mouseUp
 answer GetCDName("D:")
end mouseUp

function GetCDName pLetter
  set the hideConsoleWindows to true
  put shell(pLetter & " & dir") into temp
  return last word of line 1 of temp
end GetCDName


HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list