How do I use TFile.Copy and retain the original file permissions?

How do I use TFile.Copy and retain the original file permissions?

I am copying from the Downloads folder to the C:?Windows/inf folder

Comments

  1. From what I recall, Windows Explorer does not retain all permissions while copying files either: you inherit the ACL of the target directory. Moving a file within the Explorer retains the permissions.
    This might be a Windows API thing, and often "odd" things like these can be found on The Old New Thing.You could start at https://blogs.msdn.microsoft.com/oldnewthing/20060824-16/?p=29973

    ReplyDelete

Post a Comment