Cannot Change File Name

Discussion in 'Windows Applications' started by Eagle710, Mar 23, 2009.

  1. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    How can I make a file (txt) so that that the filename could not be changed. I have already made it ReadOnly but I don't want anyone to change the name of either. Any advice?
     
  2. Johnny

    Johnny .. Commodore .. Political User

    Messages:
    5,015
    Location:
    Happy Valley
    I don't believe you can do that ...
     
  3. American Zombie

    American Zombie Moderator Staff Member Political User

    Messages:
    2,931
    Location:
    Seattle
    Windows renaming is actually a delete/create action.
    If you take away the Delete/Write permissions on the file itself you should be able to prevent a rename operation.
     
  4. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    I am trying to make the read only feature be carried over to a WinPE image I am creating.
     
  5. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    did not know that, very interesting.

    I suppose this is because a permanent record is kept in the master file table.

    kewl to know
     
  6. American Zombie

    American Zombie Moderator Staff Member Political User

    Messages:
    2,931
    Location:
    Seattle
    Not sure if it is because of the MFT record.
    I just remembered reading about this a few years ago.

    See if I can find the link.....

    Link