Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
SmartOLE Xtra
Windows NT and Audio
Color Dialog behavior
MAAD FTP Xtra
OnStage Media for Director
Getting full error messages
PDF Asset Xtra
Dialog Xtra
Wait for explode to finish
SunTek TEKsearch
MediaMacros Xtras Mall
 

 

 

Behavior Find CD Drives letter quikly

Added on 11/22/2002

 

Compatibilities:
D7 D8 D8_5 D9 Mac PC

Required Xtras:
FileXtra

This item has not yet been rated

Author: barb3tta

Unlike all the others examples, this behaviour skips the A and B letters, 'cause they are always floppy drive (or I think so).

--list of volumes stored in ls
f = xtra("FileXtra3").new()
ls = f.fx_volumesToList()
i = 1
--checking volumes...
repeat while i <= ls.count
--a: and b: are floppy: delete them
if ls="A:" or ls="B:" then
ls.deleteAt(i)
else
--ok if there's a CD onto the drive
if f.fx_volumeIsCDROM(ls) then
i = i + 1
else
--delete item if it's a hard drive or there isn't any CDROM...
ls.deleteAt(i)
end if
end if
end repeat

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail