copy protect a file in USB

Page 1 of 1

2 Replies - 1939 Views - Last Post: 24 February 2010 - 03:27 AM

#1 Guest_sarathi*


Reputation:

copy protect a file in USB

Posted 23 February 2010 - 11:36 PM

hi,
I want to protect a text file from being copied by anyone, when it is transferred in the USB device. the user must have a read and write access for that file.Please help me if anyone know how to do this stuff..........
Thanks in advance..
Is This A Good Question/Topic? 0

Replies To: copy protect a file in USB

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: copy protect a file in USB

Posted 23 February 2010 - 11:40 PM

This can be done at the file/folder level of the File System. Assuming you are using Windows, this would be done with NTFS. C/C++ isn't ideal for protection of files. In my opinion that's the responsibility of the File System, not a programming language.
Was This Post Helpful? 0
  • +
  • -

#3 Anarion   User is offline

  • The Persian Coder
  • member icon

Reputation: 387
  • View blog
  • Posts: 1,663
  • Joined: 16-May 09

Re: copy protect a file in USB

Posted 24 February 2010 - 03:27 AM

This can be achieved with file permissions, which as no2pencil said, is not a programming language's responsibility.

There is another approach I can think of, which depends on the type of file. You can use encryption for this file, and make it only readable by your Own program (which can also write/edit that file). This way you can avoid the copy problem.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1