How about:
Get a list of all the attached volumes, names and sizes
See if the USB drive that you initialized is visible and see if it is the same size as what you configured it to be.
Then see that you are running from that volume.
Not fool proof but it's a start.
If you have a way to read a specific block on the drive, you could use that data to provide yet another check. Put a tiny 1K file on the drive, add your file to the drive. Delete the 1K file. It will look like there is just your drive but if they duplicate the whole thing to another USB key, that 1K blank space won't be there.
Kee




On Aug 2, 2004, at 3:59 PM, Trevor DeVore wrote:

On Aug 2, 2004, at 3:53 PM, Mark Wieder wrote:

Trevor-

Ah. So you only want to run if the app is running off the USB drive.
How about something simple:

if drive is removable (OS test) then
   write a text file to the drive
   if the write was successful then
      it's not a CDROM
   else
       somebody copied it to a CD
   end if
else
    it's been copied to a hard disk
end if

I like simple. that seems like it would work nicely Mark.

Thanks,


-- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to