Click to See Complete Forum and Search --> : Prevent Files From Being Copied or Moved
Brenton S.
September 23rd, 2006, 04:44 PM
Hi all,
Is there any API that can used to prevent an executable file or any file for that matter from being copied or moved from its original location? What I am trying to do is deliver a program on a CD, but I want to restrain the user from copying or moving it off the CD. Rather, they would run directly from the CD. Thanks in advance. :)
Zaccheus
September 23rd, 2006, 05:59 PM
Have a look at the \\?\ path format on this page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp
It might be possible to create a folder on the CD which has a pathname which is greater than 260 characters - which would mean that the average user cannot access the exe, because Windows explorer could not display it.
Brenton S.
September 23rd, 2006, 07:39 PM
Have a look at the \\?\ path format on this page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp
It might be possible to create a folder on the CD which has a pathname which is greater than 260 characters - which would mean that the average user cannot access the exe, because Windows explorer could not display it.
That just might work! Thanks a lot!!! :wave:
NoHero
September 25th, 2006, 10:05 AM
Alternate solutions maybe cryptography (he cannot read the file, but he can copy it) or you buy a CD copyprotection. Which might can do the job for you.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.