Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Set FrameRate of a Animated Gif Cast Member
Determine if a Year is a Leap Year
Text X-Changer Version 1.3
V12 Database Engine
EzeeAlert
Maeda @ Media
Focus 3D
cXtraRTFEditor
Sound slider
Flash Sprite -- Simple Controller [Play, Pause, Rewind]
 

 

 

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail