getting the Real name of CDs from RR

Alejandro Tejada capellan2000 at yahoo.com
Thu Dec 30 08:57:29 EST 2004


on Wed, 29 Dec 2004 
Ken Ray wrote:

> 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

Hi Ken,

Thanks a lot for this function!!! :-)

Now i suspect that this machine has
a damaged installation of Windows 98
because this code does not produce
any result... 

I try the same commands from the DOS command promt
and the last words of line 1 effectively
contains the name of the CD.

Is Time to reinstall the OS? or
Could i troubleshoot this machine in
another way?

Thanks again.

Happy New Year!! :-))

al



=====
Visit my site:
http://www.geocities.com/capellan2000/


		
__________________________________ 
Do you Yahoo!? 
Send holiday email and support a worthy cause. Do good. 
http://celebrity.mail.yahoo.com


More information about the use-livecode mailing list