Your return line ought to be drive&":\" I think, but you're returning after checking the letter C, there should be a test there to see if the file opened ok.
You don't have to use an Xtra to do this job. getNthFileNameInFolder would do the job just as well. You would check to see what the name of the first file in the folder driveletter&":\testfolder\" was. If it's "", then that's not the right drive letter. I would think about working through the alphabet backwards, because on some Windows systems you can run into trouble if you have a Zip drive that doesn't have a Zip disk in it at the time, and the Zip drive letter is likely to be earlier than your CD-ROM drive letter. -- [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
