1 Reply Latest reply on Jan 31, 2008 4:02 AM by Newsgroup_User

    But what path should i give so as to open from the CD drive

    nikdir
      hi!!
      i can open video files from my hard disk by giving the required path. But what path should i give so as to open from the CD drive. becoz the drive letter varies from computer to computer. Plz help.
      regards nik
        • 1. Re: But what path should i give so as to open from the CD   drive
          Level 7
          If your Director movie is running off the same CD drive, then you can do
          this:

          currentDriveLetter=(the moviePath).char[1]

          If the Director movie is running off a different drive, then you would
          need to query each drive and see if it is the right one. For example,
          if you know for a fact that there will be a file named "test.ini" in the
          root of your CD, then you can use BuddyAPI's baDriveList() to get a list
          of all drives and baFileExists() to see if that file is there. You can
          speed up the process by using baDiskInfo() and only querying the ones
          that are actually CD-ROM drives.

          You can get BuddyAPI at www.mods.com.au/budapi and it is free to use up
          to 2 functions (so you would have to license it if you want to use that
          3rd one I mentioned...)