> My presentation is running from the CD.I have given link to an HTML page which
> should open from the CD not from the hard disk. For this i have made buttons
> for the drive letters. The user needs to click on the cd drive letter in order
> to open the html file (which is on the Cd). I want to avoid this step of
> clicking on the drive letter. How to do it? Any help will be greatly
> appreciated.

You're running from the CD? Then just get the moviePath, and add whatever
you need to complete the path to the html file. For example, the html file
is two directories down from the movie that links to it:

startPath = the moviePath
delim = (startPath).char(the number of chars in startPath)
myHtmlPath = startPath & "directory1" & delim & "directory2" & delim &
"myHtmlFile.htm"

If you were running from the hard drive, and needed to find the CD drive,
then filextra or buddy API comes into play. For file xtra, you would use a
combination of drivesToList() and DriveIsCDROM() to find the CD drive. To
make sure that's it's your CD (some users have multiple CD drives), you
would then check that drive for the existence of one of your files.

-Kurt


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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