MARKAND911 -1 Junior Poster

I want to restrict an Excel file from renaming it and from deleting it using C#.
How can i do it.
I want to set such security that no one can rename it or delete it programatically.
I want to give this security to file which i have generated programatically using C#.