Results 1 to 4 of 4

Thread: read-only files

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2003
    Posts
    40

    read-only files

    this is more of a technical windows question but...

    is it possible to create a file that can only be modified by a certain application? for example, to create a read-only file that is truely read-only by everyone except my vb.net program?
    Last edited by ramezb84; Sep 27th, 2003 at 03:53 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Even Microsoft's Kernel32.dll can be modified ...not only the files you want to protect .

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Or If you want to protect certian files on your system or where the app is installed , use FileSystemWatcher to fire any event
    while the user is deleting , modifing , creating ,moving files .A working technique might do the trick: opening the file in the background and hidden from the user prevent anyone to alter the file content .

  4. #4
    Lively Member
    Join Date
    Sep 2003
    Location
    Chicago, IL
    Posts
    64
    You could use some type of encryption or a checksum to ensure no one has monkeyed with the file. Before your app closes, get the checksum and store it somewhere. Then when you start the app check the file's checksum against the one you stored. act accordingly. You will never be able to prevent someone from reading the file if they are an administrator on the box.
    Mike Stammer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width