Click here to Skip to main content
15,918,808 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Bug: AppDomain needs to load Assembly twice Pin
originSH8-Oct-07 10:08
originSH8-Oct-07 10:08 
QuestionDisplay Properties Pin
bfinighan7-Oct-07 18:21
bfinighan7-Oct-07 18:21 
GeneralRe: Display Properties Pin
Paul Conrad31-Dec-07 9:26
professionalPaul Conrad31-Dec-07 9:26 
Questionnew features of .net framework 2.0 at higher level Pin
mukkanti0076-Oct-07 22:37
mukkanti0076-Oct-07 22:37 
AnswerRe: new features of .net framework 2.0 at higher level Pin
Pete O'Hanlon7-Oct-07 9:07
mvePete O'Hanlon7-Oct-07 9:07 
GeneralRe: new features of .net framework 2.0 at higher level Pin
mukkanti0077-Oct-07 21:17
mukkanti0077-Oct-07 21:17 
GeneralRe: new features of .net framework 2.0 at higher level Pin
lmoelleb8-Oct-07 2:03
lmoelleb8-Oct-07 2:03 
QuestionHow to write propect a Drive .... Pin
Gopi Ramanathan5-Oct-07 20:50
Gopi Ramanathan5-Oct-07 20:50 
I want to do write protect a drive to all system users using Vb dot net. For that i am using the below code. But I am getting Deny permission for the "special Permission" of the selected Drive. Not for the write permission.

Please see the below code.

======================================================
Dim folderLocation As String = "F:"
Dim mydir As New DirectoryInfo(folderlocation)
Dim dirsecurity As DirectorySecurity = mydir.GetAccessControl
Dim fsec As FileSecurity
Dim domain As String = LCase(Environment.UserDomainName)
Dim username As String = Environment.UserName
Dim Drive As String = "F:"
fsec = File.GetAccessControl(Drive)
For Each rule As FileSystemAccessRule In dirsecurity.GetAccessRules(True, True, GetType(NTAccount))
username = rule.IdentityReference.ToString()
MsgBox(".[" + username + "]")
fsec.SetAccessRule(New FileSystemAccessRule(username, FileSystemRights.WriteData, AccessControlType.Deny))
File.SetAccessControl(Drive, fsec)
Next
==================================================

I want to that am i doing proper method or not. if not please suggest the correct way to me for doing the write protect a single drive .



Gopi Ramanathan,

Life will never be the SAME

QuestionIs there any.... Pin
MMaines20055-Oct-07 16:49
MMaines20055-Oct-07 16:49 
AnswerRe: Is there any.... Pin
lmoelleb6-Oct-07 1:26
lmoelleb6-Oct-07 1:26 
GeneralRe: Is there any.... Pin
George L. Jackson6-Oct-07 5:00
George L. Jackson6-Oct-07 5:00 
QuestionMaking a menu-like form. Pin
chaiguy13375-Oct-07 15:56
chaiguy13375-Oct-07 15:56 
AnswerRe: Making a menu-like form. Pin
chaiguy13375-Oct-07 16:17
chaiguy13375-Oct-07 16:17 
QuestionHow can I Read Excel-documents? Pin
MaWeRic5-Oct-07 15:18
MaWeRic5-Oct-07 15:18 
AnswerRe: How can I Read Excel-documents? Pin
Christian Graus5-Oct-07 16:17
protectorChristian Graus5-Oct-07 16:17 
AnswerRe: How can I Read Excel-documents? Pin
Monte at Oaklawn8-Oct-07 4:03
Monte at Oaklawn8-Oct-07 4:03 
QuestionSSL Signature Verification Pin
#realJSOP5-Oct-07 11:37
professional#realJSOP5-Oct-07 11:37 
QuestionAny issues????? Pin
Charith Jayasundara4-Oct-07 20:07
Charith Jayasundara4-Oct-07 20:07 
AnswerRe: Any issues????? Pin
Urs Enzler6-Oct-07 3:50
Urs Enzler6-Oct-07 3:50 
QuestionConditional Compiler Directives Pin
Vasudevan Deepak Kumar4-Oct-07 0:42
Vasudevan Deepak Kumar4-Oct-07 0:42 
AnswerRe: Conditional Compiler Directives Pin
Scott Dorman4-Oct-07 1:15
professionalScott Dorman4-Oct-07 1:15 
GeneralRe: Conditional Compiler Directives Pin
Vasudevan Deepak Kumar4-Oct-07 6:05
Vasudevan Deepak Kumar4-Oct-07 6:05 
GeneralRe: Conditional Compiler Directives Pin
Scott Dorman4-Oct-07 11:33
professionalScott Dorman4-Oct-07 11:33 
GeneralRe: Conditional Compiler Directives Pin
Luc Pattyn4-Oct-07 12:23
sitebuilderLuc Pattyn4-Oct-07 12:23 
GeneralRe: Conditional Compiler Directives Pin
Scott Dorman5-Oct-07 3:42
professionalScott Dorman5-Oct-07 3:42 

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.