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?
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
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