> Hello: I have a DLL that must update into a server. I want to make
> automatic proccess that copy that dll from a directory(Ex: c:\update)
[quoted text clipped - 4 lines]
>
> Regards
Thanks by responding :)
I mean that if I copy (for example manually) this dll from desktop to
app. directory, this dll preserves rights from was created (in
desktop), and not assume new rights of the new directory.
For example, DLL has system user,administrator user, and user@domain.
But apps directory has administrator user, system user and USERS user,
that is neccesary from my dll.
Sorry by my english :) I don't know if is very easy understand me
Regards
yoga weazel - 11 May 2006 16:51 GMT
No problem. I get what you mean now. This is not really an interop problem
though.
I haven't tried it but it looks like it may be as simple as the following:
File.SetAccessControl(@"c:\txt.dll", File.GetAccessControl(@"c:\txt.txt"))
where c:\txt.dll is the newly copied file and c:\txt.txt is a existing file
in the target directory with the desired access rights.
Good luck.
> Thanks by responding :)
>
[quoted text clipped - 9 lines]
>
> Regards