Posted by trezbo in SWF Studio V3 on Mar 04 2008, 06:21 am

Hi is it possible to detect if a user has an exe running from a CD Drive or not? Basically i want to run an exe from a cd but if it is not being run from the cd then give the user an msg to say that the exe can only be run on cd?


Posted by @st@l@vist@ in SWF Studio V3 on Mar 04 2008, 07:25 am

For simple checks you can do the following, but that doesn't protect the CD from copying and other things.

1) Check the type of driver: ssCore.FileSys.driveType > CDROM
2) Check attributes of EXE: ssCore.FileSys.getAttrs > Readonly
3) Checking free space on the disk: ssCore.FileSys.getFreeSpace > 0
4) Inspect write the file to disk: ssCore.FileSys.writeToFile > success == FALSE
...


Posted by trezbo in SWF Studio V3 on Mar 04 2008, 07:52 am

Thanks for the reply. What i am basically trying to do is to make sure the content is running off a CD so if the exe was copied to a hard drive it would detect this and give an error msg