Search code examples
c#.netsecuritycopy-protection

How to remove programmatically the security protection of a copied file in network directory?


i have a file in a network directory and this file it's been previously copied, and i want to operate with this file. But, in Windows Xp, the file have this security protection / block:

(sorry it's in italian)

security

I want to programmatically remove this security protection in C#.

Thanks in advance!

M.


Solution

  • Open this file for write yourfile.exe:Zone.Identifier and close it, so it gets emptyed.