Copying files with same right access

  • Thread starter Thread starter kiwi
  • Start date Start date
K

kiwi

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) to
application directory (ex: c:\application). Copy file is easy, but the
problem is that copying it does not get the same right access that app.
directory has.

How can I copy this file assigning the correct right access? (from
c:\application directory)


Thanks
 
Hello kiwi,

Look at DirectoryInfo/FileInfo Attribute property

k> I have a DLL that must update into a server. I want to make automatic
k> proccess that copy that dll from a directory(Ex: c:\update) to
k> application directory (ex: c:\application). Copy file is easy, but
k> the problem is that copying it does not get the same right access
k> that app. directory has.
k>
k> How can I copy this file assigning the correct right access? (from
k> c:\application directory)


---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Yup if you're not caring about the ACL properties that's where to go to copy
the directory attributes
 
Back
Top