Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
QuestionCollectionBase and Updating an Item Pin
Ryan Minor21-Mar-10 1:57
Ryan Minor21-Mar-10 1:57 
AnswerRe: CollectionBase and Updating an Item Pin
Not Active21-Mar-10 3:53
mentorNot Active21-Mar-10 3:53 
AnswerRe: CollectionBase and Updating an Item [modified] Pin
DaveyM6921-Mar-10 3:57
professionalDaveyM6921-Mar-10 3:57 
Questionc# & oracle Pin
amer shammout21-Mar-10 0:18
amer shammout21-Mar-10 0:18 
AnswerRe: c# & oracle Pin
Not Active21-Mar-10 1:50
mentorNot Active21-Mar-10 1:50 
QuestionHow to Dynamic add html in GridView by c# code???? Pin
mimimimilaw20-Mar-10 20:30
mimimimilaw20-Mar-10 20:30 
AnswerRe: How to Dynamic add html in GridView by c# code???? Pin
Rod Kemp20-Mar-10 21:10
Rod Kemp20-Mar-10 21:10 
QuestionStop files being deleted ? Pin
BuggingMe20-Mar-10 12:42
BuggingMe20-Mar-10 12:42 
FileSecurity ACL = File.GetAccessControl(InputFile);
                    ACL.AddAccessRule(new FileSystemAccessRule("Guest", FileSystemRights.Delete, AccessControlType.Deny));
                    ACL.AddAccessRule(new FileSystemAccessRule("SYSTEM", FileSystemRights.Delete, AccessControlType.Deny));
                    ACL.AddAccessRule(new FileSystemAccessRule("Administrators", FileSystemRights.Delete, AccessControlType.Deny));
                    ACL.AddAccessRule(new FileSystemAccessRule("Users", FileSystemRights.Delete, AccessControlType.Deny));
                    File.SetAccessControl(InputFile, ACL);


Im using the above code in a loop to server to stop files from being deleted from my RAID (Nothing critical just Movies) but it seems to make flip all difference apart from the flag in special permissions (Which means the ACL is being applied) setting the read-only property to true doesn't help either.

Can anyone suggest a solution ? AFIK the above should cover all users.
AnswerRe: Stop files being deleted ? Pin
Not Active20-Mar-10 12:56
mentorNot Active20-Mar-10 12:56 
GeneralRe: Stop files being deleted ? Pin
BuggingMe20-Mar-10 13:09
BuggingMe20-Mar-10 13:09 
GeneralRe: Stop files being deleted ? Pin
Not Active20-Mar-10 13:36
mentorNot Active20-Mar-10 13:36 
GeneralRe: Stop files being deleted ? Pin
BuggingMe20-Mar-10 13:42
BuggingMe20-Mar-10 13:42 
Question.net create table of contents for Sql server report service 2008 Pin
jassiedog20-Mar-10 11:29
jassiedog20-Mar-10 11:29 
QuestionViewing SSL Certificate - C# Webbrowser Control PinPopular
Jon Braunsma20-Mar-10 5:44
Jon Braunsma20-Mar-10 5:44 
QuestionStatic Member and Inheritance Pin
Tony Richards20-Mar-10 4:54
Tony Richards20-Mar-10 4:54 
AnswerRe: Static Member and Inheritance Pin
Luc Pattyn20-Mar-10 5:28
sitebuilderLuc Pattyn20-Mar-10 5:28 
AnswerRe: Static Member and Inheritance Pin
Giorgi Dalakishvili20-Mar-10 6:16
mentorGiorgi Dalakishvili20-Mar-10 6:16 
AnswerRe: Static Member and Inheritance Pin
Bernhard Hiller21-Mar-10 21:42
Bernhard Hiller21-Mar-10 21:42 
QuestionAnimated GIF Pin
Joseph M. Ziemianski20-Mar-10 4:42
Joseph M. Ziemianski20-Mar-10 4:42 
AnswerRe: Animated GIF Pin
The Man from U.N.C.L.E.20-Mar-10 5:04
The Man from U.N.C.L.E.20-Mar-10 5:04 
GeneralRe: Animated GIF Pin
Joseph M. Ziemianski20-Mar-10 5:10
Joseph M. Ziemianski20-Mar-10 5:10 
Questionpopulate a specefic elemnt with attribute as column or tag [modified] Pin
Jassim Rahma20-Mar-10 4:23
Jassim Rahma20-Mar-10 4:23 
AnswerFormatting Pin
Not Active20-Mar-10 4:39
mentorNot Active20-Mar-10 4:39 
GeneralRe: Formatting Pin
Jassim Rahma20-Mar-10 4:42
Jassim Rahma20-Mar-10 4:42 
GeneralRe: Formatting Pin
Not Active20-Mar-10 6:54
mentorNot Active20-Mar-10 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.