>repeat with volumeName in ["MyCD1", "MyCD2", "MyCD3", "MyCD4"]
>
>  if baFileExist(volumeName & ":ID" then exit repeat
>end repeat

Thanks, mare--that's actually the approach I use at the moment, except I'm 
using baDiskList() for my volume name list. The problem is that it hits the 
floppy drive, zip drive, network drives, etc. On Windows you can skip those 
by checking the drive type.

>Or, much simpler, you can put the volume name in a text file and put that
>on every CD-Rom.

Now that I like :-)

Here's a situation, though. I have a client who wants to use this as a kind 
of poor man's copy protection--if the CD isn't in the drive, he doesn't 
want the game to run. What's to prevent somebody from simply copying the 
name file to their hard drive? I think the average gamer could find an 
invisible file in about 10 seconds.



[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